
一 、stack-blur库实现(原理:canvas):
https://blog.csdn.net/u010852544/article/details/43967749
二 、CSS3实现(原理:filter):
注意: 需要解决两个问题:容器外范围变模糊(用scale)与周围泛白(用overflow:hidden)
参考链接:
【小程序】INPUT键盘事件(修改键盘右下角按钮文件和添加事件)<input
type="text"
placeholder="请输入"
bindinput="bindKeyInput"
value="{{inputMsg}}"
confirm-type='send'
bindconfirm="sendMsgTap"
bindfocus='focus'
bindblur='blur'
focus='true'
/>
1、confirm-type='send': 设置键盘右下角按钮的文字,仅在type='text'时生效
2、bindconfirm="sendMsgTap":点击键盘右下角按钮时的触发事件
3、bindfocus='focus':聚焦时触发的事件
4、bindblur='blur':失去焦点时触发的事件
5、focus='true':进入界面时,自动聚焦,拉起键盘 (true/false)
6、
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)