上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: 1.Mock.Random 2.Mock.Random 提供的完整方法(占位符)如下 3.定义数据类型,详情见官方文档 4.mockjs语法规范 数据模板中的每个属性由 3 部分构成:属性名、生成规则、属性值: // 属性名 name // 生成规则 rule // 属性值 value 'name| 阅读全文
posted @ 2019-03-17 15:55 SRH啦 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 2.新建mockjs文件夹/index.js 阅读全文
posted @ 2019-03-17 15:34 SRH啦 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 官网 1.为什么使用mockjs 二、mock优点 阅读全文
posted @ 2019-03-17 15:30 SRH啦 阅读(206) 评论(0) 推荐(0) 编辑
摘要: swiper import Swiper from "swiper"; import "../../../node_modules/swiper/dist/css/swiper.css"; import Swiper from "swiper"; import "../../../node_modu 阅读全文
posted @ 2019-03-09 18:00 SRH啦 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 参考 现在很多程序员写代码的时候都喜欢开着eslint进行代码格式校验,写习惯了还好,但是一般刚开始熟悉eslint的同学估计会被eslint的代码格式检查给逼疯的,哈哈哈。。。 今天就讲讲如何在vscode中配置eslint代码格式化 1.这里的前提是 vscode中需要安装eslint和pret 阅读全文
posted @ 2019-03-09 13:10 SRH啦 阅读(1650) 评论(0) 推荐(0) 编辑
摘要: 参考 一、安装 npm install js-cookie --save 二、引用 import Cookies from 'js-cookie' 三、一般使用 存到Cookie去 // Create a cookie, valid across the entire site: Cookies.s 阅读全文
posted @ 2019-03-09 12:52 SRH啦 阅读(7809) 评论(0) 推荐(0) 编辑
摘要: 1.为什么会跨域: 2.什么是同源策略: 3.跨域的解决办法 jsonp 方法1: <script> //动态创建script标签 var script = document.createElement("script"); script.src = "https://api.douban.com/ 阅读全文
posted @ 2019-03-08 18:17 SRH啦 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1.为什么会跨域: 2.什么是同源策略: 3.跨域的解决办法 jsonp 方法1: <script> //动态创建script标签 var script = document.createElement("script"); script.src = "https://api.douban.com/ 阅读全文
posted @ 2019-03-08 18:16 SRH啦 阅读(577) 评论(0) 推荐(0) 编辑
摘要: 链接 阅读全文
posted @ 2019-03-07 18:15 SRH啦 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 1.单例模式 2.观察者模式 阅读全文
posted @ 2019-03-05 18:11 SRH啦 阅读(230) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页