
常见前端问题
qq_41802505
这个作者很懒,什么都没留下…
展开
-
vue中的watch
new Vue({el: ‘#root’,data: {cityName: {id: 1, name: ‘shanghai’}},watch: {cityName: {handler(newName, oldName) {// …},deep: true, //深度监听immediate: true //这样使用watch时有一个特点,就是当值第一次绑定的时候,不会执行监...原创 2019-06-19 09:37:11 · 171 阅读 · 0 评论 -
ES6的includes
ES6 中可以使用 array.includes(item) 来代替 array.indexOf(item) !== -1原创 2019-07-29 16:25:24 · 297 阅读 · 0 评论 -
nput type设置成number时maxlength属性失效
解放方案:很简单,搞定!原创 2019-08-15 16:30:38 · 216 阅读 · 1 评论