建议去企微社区问问他们客服:https://developer.work.weixin.qq.com/community/question ...
<view class="weui-cells__title">控制最大输入长度的input</view> <input class="weui-input" maxlength="10" placeholder="最大输入长度为10" /> <view class="weui-cells__title">实时获取输入值:{{inputValue}}</view> <input class="weui-input" maxlength="10" bindinput="bindKeyInput" placehold...
maxlength:类型 数字 最大输入长度,设置为-1时,不限制最大长度 cursor-spacing:类型 数字 指定光标与键盘的距离 focus:类型 布尔 获取焦点 confirm-type:类型 字符串 设置键盘右下角按钮的文字,仅在 type="text' 时生效 属性值:send 右下角按钮为"发送" search 右下角按钮为"搜索" next 右下角按钮为"下一...
maxlengthNumber140最大输入长度,设置为 -1 的时候不限制最大长度 cursor-spacingNumber0指定光标与键盘的距离,单位 px 。取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离 auto-focusBooleanfalse(即将废弃,请直接使用 focus )自动聚焦,拉起键盘 focusBooleanfalse获取焦点 confirm-t...
<inputclass="weui-input"maxlength="10"placeholder="最大输入长度为10"/> </view> </view> </view> <viewclass="page-section"> <viewclass="weui-cells__title">实时获取输入值:{{inputValue}}</view> <viewclass="weui-cells weui-cells_after-title"> ...
maxlength number 140 否 最大输入长度,设置为 -1 的时候不限制最大长度 1.0.0 cursor-spacing number 0 否 指定光标与键盘的距离,取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离 1.0.0 auto-focus boolean FALSE 否 (即将废弃,请直接使用 focus )自动聚焦,拉起键盘 1.0...
<input class="weui-input" maxlength="10" placeholder="最大输入长度为10" /> </view> </view> </view> <view class="page-section"> <view class="weui-cells__title">实时获取输入值:{{inputValue}}</view> <view class="weui-cells weui-cells_after-title"> ...
maxlength number 140 否 最大输入长度,设置为 -1 的时候不限制最大长度 1.0.0 cursor-spacing number 0 否 指定光标与键盘的距离,取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离 1.0.0 auto-focus boolean false 否 (即将废弃,请直接使用 focus )自动聚焦,拉起键盘 1.0...
<input class="weui-input" maxlength="10" bindinput="bindKeyInput" placeholder="输入同步到view中"/> </view> </view> </view> <view class="page-section"> <view class="weui-cells__title">控制输入的input</view> <view class="weui-cells weui-cells_after-title"> ...