摘要: 1、安装vue-cli3 卸载旧版本mac电脑使用sudo npm uninstall vue-cli -g 重新安装时,可能会遇到报错,因为没有彻底删除vue 解决方案,cd进入/报错文件夹,ls查询有没有@vue、vue-init等,rm -rf 删除@vue 2、vue-cli eslint校 阅读全文
posted @ 2020-06-17 17:09 搬砖小弟_giugiu 阅读(580) 评论(0) 推荐(0)
摘要: 1、引用类型可以添加属性值,值类型不可以 var tem = {}, tem.name = 'template', console.log(tem.name) //输出正常 var tem = 'test', tem.name = 'template', console.log(tem.name) 阅读全文
posted @ 2020-06-15 16:43 搬砖小弟_giugiu 阅读(170) 评论(0) 推荐(0)
摘要: 1、新建项目文件夹,创建index.html,在index.html中引入js文件<script scr="./dist/index.js"></script> 2、创建文件夹src,在src下新建一个js文件,命名index.js 3、创建dist文件夹 4、运行npm init -y 5、运行n 阅读全文
posted @ 2020-05-20 15:43 搬砖小弟_giugiu 阅读(129) 评论(0) 推荐(0)
摘要: css: 1、position定位都有哪些? releative:生成相对定位的元素,相对于其正常位置进行定位。 absolute:绝对定位,相对于static定位以外的第一个父元素进行定位。 fixed:生成固定定位的元素,相对于浏览器窗口进行定位。 sticky:粘性定位,该定位基于用户滚动的位 阅读全文
posted @ 2020-05-20 11:50 搬砖小弟_giugiu 阅读(2278) 评论(0) 推荐(0)