摘要: <input v-model="sth" /> // 等同于 <input :value="sth" @input="sth = $event.target.value" /> v-model只不过是一个语法糖而已,真正的实现靠的还是 v-bind:绑定响应式数据 触发oninput 事件并传递数据 阅读全文
posted @ 2020-09-04 00:35 凉城i 阅读(313) 评论(0) 推荐(0)
摘要: 1.安装脚手架 npm i @vue/cli -g 2.脚手架创建项目 vue create myproject 3.创建项目完成后,手动在项目根目录创建vue.config.js module.exports = { devServer: { host: 'localhost', port: 80 阅读全文
posted @ 2020-09-03 04:02 凉城i 阅读(1143) 评论(0) 推荐(0)
摘要: String.prototype.myTrim = function () { return this replace(/^\s+/, '').replcae(/\s+$/, '') } 阅读全文
posted @ 2020-09-01 02:52 凉城i 阅读(225) 评论(0) 推荐(0)
摘要: git push -u origin login(分支名称) 阅读全文
posted @ 2020-08-29 03:41 凉城i 阅读(245) 评论(0) 推荐(0)
摘要: 1.Vue中安装Swiper 官方命令 1 npm install swiper vue-awesome-swiper --save 1.1 npm install vue-awesome-swiper@3.1.3 --save-dev //下载vue-awesome-swiper 2.根据官方命令 阅读全文
posted @ 2020-08-26 15:12 凉城i 阅读(1560) 评论(0) 推荐(0)