| 主機參考:VPS測評參考推薦/專注分享VPS服務器優惠信息!若您是商家可以在本站進行投稿,查看詳情!此外我們還提供軟文收錄、PayPal代付、廣告贊助等服務,查看詳情! |
| 我們發布的部分優惠活動文章可能存在時效性,購買時建議在本站搜索商家名稱可查看相關文章充分了解該商家!若非中文頁面可使用Edge瀏覽器同步翻譯!PayPal代付/收錄合作 |

輸入框的輸入頻率也比較高。。。如果是一種風格,那就把它包在外面,自己定義。輸入屬性不多,需要慢慢測試嘗試。
主要屬性:

wxml
& lt!--樣式的優先級高于類,將覆蓋與類--》相同的屬性;& lt視圖class = & quot輸入視圖& quotstyle = & quot保證金-最高:40% & quot;& gt& lt輸入class = & quot輸入& quottype = & quot號碼& quotplaceholder = & quot請輸入賬號“placeholder -style = & quot;顏色:紅色bindinput="listenerPhoneInput & quot/& gt;& lt/view & gt;& lt視圖class = & quot輸入視圖& quot& gt& lt輸入class = & quot輸入& quot密碼= & quottrue & quotplaceholder = & quot請輸入密碼“placeholder -style = & quot;顏色:紅色bindinput="listenerPasswordInput & quot/& gt;& lt/view & gt;& lt按鈕樣式= & quotmargin -left:15 rpx;margin -right:15 rpx;margin -top:50 rpx;邊框-半徑:40rpx & quottype = & quot主要& quotbindtap = & quot聽眾登錄& quot& gt注冊
page({/* * *初始化數據* */data:{ phone:& # 39;& amp#39;密碼:& amp#39;& amp#39;,},/* * *收聽手機號碼輸入*/listener phone input:function(e){ this . data . phone = e . detail . value;},/* * *監聽密碼輸入*/listener password input:function(e){ this . data . password = e . detail . value;},/* * *監聽登錄按鈕*/listener log in:function(){//打印收入帳戶和密碼console . log(&;#39;手機號碼:&;#39;,this . data . phone);console . log(amp;#39;密碼是:&;#39;,this . data . password);},onLoad:function(options){//頁面初始化選項帶來的參數},on ready:function(){//頁面渲染完成},on show:function(){//頁面顯示},on hide:function(){//頁面隱藏},on unload:function(){
。input { padding -left:10px;身高:44px} .inputView{ border: 2px純紅;邊框-半徑:40pxmargin -left:15px;margin -right:15px;margin -top:15px;}【相關推薦】
1.下載微信微信官方賬號平臺源代碼。
2.微智創+微信機器人源代碼
這幾篇文章你可能也喜歡:
- 暫無相關推薦文章
本文由主機參考刊發,轉載請注明:詳細講解微信開發輸入輸入框(詳細講解微信開發輸入輸入框的過程) http://m.k2270.com/115315.html
主機參考

















評論前必須登錄!
注冊