[위챗 애플릿] 구성 요소 읽기 전용

1999 단어 위챗 애플릿

전언

  • 디버그 베이스 라이브러리 2.12.0
  • 개발자 도구 1.03.2008270
  • 빠른 개발을 위해 어떤 기능copy를 가져왔는데 복사된 것이 input인 것을 발견했습니다. 그런데 읽기만 하는 것처럼 보이려면 어떻게 해야 합니까?

    조작하다

    input의 경우 속성disabledtrue로 설정합니다.코드:
    <input class="right-text" type='text' name='driver' value="{
          {leasingApplyCar.driver}}" placeholder="      " disabled="true">input>
    

    참고 자료


    https://developers.weixin.qq.com/miniprogram/dev/component/input.html

    좋은 웹페이지 즐겨찾기