02 2020 档案
摘要:做移动端项目时,需要限制input框可输入内容长度。当时使用了keydown, keyup事件,但是在ios下不生效,代码如下: $('.father')('keydown keyup','input',function(){ console.log('限制可输入内容长度代码') }) 将keydo
阅读全文
摘要:方式一 $parent 父组件 <template> <div> <child></child> </div> </template> <script> import child from './child'; export default { components: { child }, meth
阅读全文

浙公网安备 33010602011771号