摘要: js常用数据类型的方法使用归纳 * String >是一个对象 * 字符串可以看成是字符组成的数组,但是js中没有字符类型 * 字符是一个一个的,在别的语言中字符用一对单引号括起来 * 在js中字符串可以使用单引号也可以使用双引号 * 因为字符串可以看成是数组,所以,可以通过for循环进行遍历 * 阅读全文
posted @ 2019-08-21 22:59 wen521 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 个购物车 阅读全文
posted @ 2019-08-21 18:59 wen521 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 在login.vue中通过发送http请求获取token//根据api接口获取tokenvar url = ‘http://www.baidudd.com’ + "/session";this.$axios.post(url, {username: this.loginForm.username,p 阅读全文
posted @ 2019-08-20 22:38 wen521 阅读(6346) 评论(0) 推荐(0) 编辑
摘要: vue-loader是什么?用途有哪些? 是解析vue文件的一个加载器,用途是js可以写es6,style样式可以scss或less,template可以加jade active-class是那个组件属性? Vue-router模块的router-link组件,设置激活时样式 css只在当前组件库中 阅读全文
posted @ 2019-08-19 22:11 wen521 阅读(481) 评论(0) 推荐(0) 编辑
摘要: axios的使用方法 axios({ url:"http://", method:'get/post/put/delete'默认是get }).then(res=>console.log(res)) axios({ url:"http://", 专门针对get请求的参数拼接(?type=pop&pa 阅读全文
posted @ 2019-06-12 14:51 wen521 阅读(2448) 评论(0) 推荐(0) 编辑