亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

? ?? ??? ?? ???? ?? WeChat ??? ?? ??: ??? ?? ?? ? ?? ?? ?? ? ??

WeChat ??? ?? ??: ??? ?? ?? ? ?? ?? ?? ? ??

May 22, 2018 am 11:55 AM

textarea ?? ? ?? ?? ?? ?? ??:

textarea ?? ? ?? ??.

??? ?? ?? ? ?? ?? ?? ??? ??? ?? ?????.

 微信小程序組件:textarea多行輸入框解讀和分析

??? WXML ?????.

<view class="content">
placeholder:
<textarea placeholder="占位符" />
<textarea placeholder="占位符 改變樣式style" placeholder-style=
"color:blue"/>
<textarea placeholder="占位符 改變樣式class" placeholder-class="placeholdText"/>
</view>

??? WXSS ??? ??? ????.

.content{
??border:1px?black?solid;
??margin:?10px;
??font-size:?10pt;
??padding:?10px;
}
textarea{
??border:?1px?red?solid;
??margin:?auto;
??width:100%;
??height:?3em;
??margin-top:5px;
??padding:?3px;
}
/*占位符樣式*/
.placeholdText{
??font-size:?2em;
}

??? ?? ?? ? ?? ??? ??? ???:

 微信小程序組件:textarea多行輸入框解讀和分析

??? WXML ?????.:

<view class="content">
auto-height:
<textarea  auto-height placeholder="自動(dòng)增高,style.height不生效"/>
bindinput="當(dāng)內(nèi)容改變"
<textarea  placeholder="" bindlinechange="bindlinechange"/>
bindfocus:當(dāng)獲取焦點(diǎn)
<textarea  placeholder="當(dāng)獲取焦點(diǎn)" value="" bindfocus="bindfocus"/>
bindblur:當(dāng)失去焦點(diǎn)觸發(fā)
<textarea  placeholder="當(dāng)失去焦點(diǎn)" bindblur="bindblur"/>
</view>
事件觸發(fā):
<view class="content"  style="color:blue">
{{log}}
</view>

JS ??? ??? ????.:

Page({
??data:{
????log:'事件觸發(fā)'
??},
??//行高改變時(shí)
??bindlinechange:function(e){
????var?height=e.detail.height;
????var?heightRpx=e.detail.heightRpx;
????var?lineCount=e.detail.lineCount;
????this.setData({
??????log:"height="+height+"??|??heightRpx="+heightRpx+"??|??lineCount="+lineCount
????})
??},
????//文本失去焦點(diǎn)
??bindblur:function(e){
????var?value=e.detail.value;
?????this.setData({
??????log:"bindblur失去改變.獲取textarea值="+value
????})
??},
???//文本獲取焦點(diǎn)
??bindfocus:function(e){
????var?value=e.detail.value;
?????this.setData({
??????log:"bindfocus獲取焦點(diǎn),獲取textarea值="+value
????})
??}
})

WXSS ??? ??? ????. :

.content{
??border:1px?black?solid;
??margin:?10px;
??font-size:?10pt;
??padding:?10px;
}
textarea{
??border:?1px?red?solid;
??margin:?auto;
??width:100%;
??height:?3em;
??margin-top:5px;
??padding:?3px;
}

 微信小程序組件:textarea多行輸入框解讀和分析

?? ?? ??:

??? WXML ?????:

<!--=======屬性=======-->
<!--value:輸入框內(nèi)容-->
<textarea value="內(nèi)容"/>
<!--placeholder:占位符,對(duì)輸入框內(nèi)容提示-->
<textarea placeholder="占位符" placeholder-class="占位符靜態(tài)樣式"   placeholder-style="占位符動(dòng)態(tài)樣式"/>
<!--disabled:控制標(biāo)簽有效,或者失效狀態(tài),在失效狀態(tài),不能獲取該值-->
<textarea disabled="true"/>
<textarea disabled/>?等同于?<textarea disabled="false"/>
<!--maxlength:內(nèi)容長(zhǎng)度限制,默認(rèn)140-->
<textarea  maxlength="100"/>
<textarea  maxlength/>?等同于?<textarea  maxlength="140"/>
<!--focus:初始化時(shí),獲取輸入焦點(diǎn)(目前開發(fā)工具暫不支持)-->
<textarea  focus="true"/>
<textarea focus/>?等同于?<textarea focus="false"/>
<!--auto-focus:當(dāng)界面只有一個(gè)textarea,自動(dòng)獲取焦點(diǎn)-->
<textarea   auto-focus="true"/>
<textarea   auto-focus/>?等同于?<textarea auto-focus="false"/>
<!--auto-height:是否自動(dòng)增高,設(shè)置auto-height時(shí),style.height不生效-->
<textarea  auto-height="true"/>
<textarea  auto-height/>?等同于?<textarea auto-height="false"/>
<!--=======事件=======-->
<!--bindlinechange:輸入框行數(shù)變化時(shí)調(diào)用 返回參數(shù):height,heightRpx,lineCount-->
<textarea bindlinechange="自己定義函數(shù)名"/>
<!--bindfocus:當(dāng)獲取焦點(diǎn),可用輸入狀態(tài)時(shí)觸發(fā)-->
<textarea bindfocus="自己定義函數(shù)名"/>
<!--bindblur:當(dāng)失去焦點(diǎn)觸發(fā)-->

? ??? WeChat ??? ?? ??: ??? ?? ?? ? ?? ?? ?? ? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

? ??? ?? ?? ?????(SublimeText3)

???

??? ??

??? ????
1597
29
PHP ????
1487
72
NYT ?? ??? ??
129
836
???