摘要: https://blog.csdn.net/qq_24147051/article/details/76997838 阅读全文
posted @ 2018-11-19 10:38 靥放 阅读(209) 评论(0) 推荐(0) 编辑
摘要: // 引入HTTP模块 let http = require("http") // 用http模块创建服务 /* req 获取URL信息 (request) res 浏览器返回响应信息 (response) */ http.createServer(function(req,res){ // 发送http头部 // HTTP状态值:200:OK // 设置HTTP头... 阅读全文
posted @ 2018-11-12 15:32 靥放 阅读(2717) 评论(0) 推荐(0) 编辑
摘要: config文件夹里index.js中添加: 发请求文件ajax.js中添加: 原本填写地址的文件中config.js改为: 阅读全文
posted @ 2018-11-08 16:46 靥放 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 需要缓存的页面代码 嵌套该组件的代码 router.js的代码 阅读全文
posted @ 2018-09-04 17:36 靥放 阅读(275) 评论(0) 推荐(0) 编辑
摘要: var scriptElement = document.createElement('script'); document.body.appendChild(scriptElement); scriptElement.src = "https://static.mlinks.cc/scripts/dist/mlink.min.js" 阅读全文
posted @ 2018-07-26 15:29 靥放 阅读(1586) 评论(0) 推荐(0) 编辑
摘要: 渲染函数 & JSX https://cn.vuejs.org/v2/guide/render-function.html 导航守卫 https://router.vuejs.org/zh/guide/advanced/navigation-guards.html#%E5%85%A8%E5%B1%8 阅读全文
posted @ 2018-07-26 15:26 靥放 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 参考自:https://www.cnblogs.com/gsgs/p/7294160.html 阅读全文
posted @ 2018-07-26 14:47 靥放 阅读(1016) 评论(0) 推荐(0) 编辑
摘要: 订单号:{{orderDetail.orderCode}}复制 copyOrderClick(){ this.$refs.copyOrderInput.select() document.execCommand("copy"); this.showCopy = true }, 阅读全文
posted @ 2018-07-26 14:36 靥放 阅读(131) 评论(0) 推荐(0) 编辑
摘要: mounted () { this.$router.afterEach((to, from, next) => { window.scrollTo(0, 0); //跳到别的页面会自动滚动底部 }); history.pushState(null, null, document.URL); }, 阅读全文
posted @ 2018-07-25 11:33 靥放 阅读(1515) 评论(0) 推荐(0) 编辑
摘要: 微信服务号开发时今日支付页面支付时iOS会出现当前链接还是上一个页面的链接导致微信支付失败,提示当前页面的url未注册,解决方案是判断如果是iOS的话进入该页面就自动刷新一遍。 路由文件index.js里: 支付页里: 阅读全文
posted @ 2018-07-25 11:16 靥放 阅读(761) 评论(0) 推荐(0) 编辑