Fork me on GitHub
摘要: 将代码放在public/index.html的body中 <script> javascript: (function () { var script = document.createElement('script'); script.src = "//cdn.jsdelivr.net/npm/e 阅读全文
posted @ 2020-09-21 11:02 ssh__F 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 创建vue项目流程 1.使用构建工具vue-cli创建项目脚手架 vue-cli是一个官方发布vue.js项目脚手架,使用vue-cli可以快速创建vue项目。 (1)安装 确认已安装了node.js,可在cmd中输入( node -v和npm -v),如显示出版号,说明安装成功。 图片.png 通 阅读全文
posted @ 2020-03-27 16:40 ssh__F 阅读(506) 评论(0) 推荐(0) 编辑
摘要: vscode 最简单实用的默认配置项 eslint、prettier、vetur setting.json文件 { "workbench.iconTheme": "vscode-icons", "files.autoSave": "afterDelay", "liveServer.settings. 阅读全文
posted @ 2019-12-31 11:01 ssh__F 阅读(19456) 评论(0) 推荐(0) 编辑
摘要: 使用mockjs 随机生成模拟接口数据 使用mockjs 随机生成模拟接口数据,要多少就有多少哦,准备工作,还是先要安装最新版本的node和npm哦 mockjs官网: http://mockjs.com/ 1:在D盘新建一个文件夹Mockjs 打开cmd,右键管理员身份运行 进入Mockjs的根目 阅读全文
posted @ 2019-12-20 16:54 ssh__F 阅读(3025) 评论(0) 推荐(0) 编辑
摘要: 根据坐标逆定位查询位置所在城市信息 onLoad: function (options) { let that = this wx.getLocation({ type: 'wgs84', // 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于 wx.openLocation 的坐标 阅读全文
posted @ 2019-12-20 15:16 ssh__F 阅读(905) 评论(0) 推荐(0) 编辑
摘要: Element-ui组件库upload导出Excel表格 // 上传excel upload() { this.$refs.upload.submit(); //调用upload中自定义的方法 }, // 导入excel学生列表 uploadFile(item) { //:http-request自 阅读全文
posted @ 2019-12-20 15:02 ssh__F 阅读(671) 评论(0) 推荐(0) 编辑
摘要: 微信小程序checkbox <checkbox-group bindchange="checkboxChange"> <label class="checkbox" wx:for="{{items}}" wx:key="item"> <checkbox value="{{item.name}}" c 阅读全文
posted @ 2019-12-20 14:57 ssh__F 阅读(2099) 评论(0) 推荐(0) 编辑
摘要: gitlab克隆报错:remote: HTTP Basic: Access denied;remote: You must use a personal access ..... 错误: remote: HTTP Basic: Access denied remote: You must use a 阅读全文
posted @ 2019-12-20 14:53 ssh__F 阅读(524) 评论(0) 推荐(0) 编辑
摘要: // 2019年10月的格式转为201910 const year = this.data.seleteTime.split("年")[0] let month = this.data.seleteTime.split("年")[1].split("月")[0] // 计算每个月的天数 const thisDate = new Date(year, month, 0); // console.lo 阅读全文
posted @ 2019-11-01 22:51 ssh__F 阅读(253) 评论(0) 推荐(0) 编辑
摘要: es6 封装request请求 es6 封装request请求 es6 封装request请求 es6 封装request请求 为了使代码更精简,便于理解和维护,使用 new Promise方法对request请求进行封装 new Promise(resolve, reject) 含有两个参数 re 阅读全文
posted @ 2019-10-25 14:08 ssh__F 阅读(671) 评论(0) 推荐(0) 编辑