上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 39 下一页

2018年11月12日

mui页面交互

摘要: 1.页面a准备函数 2.页面b执行函数 阅读全文

posted @ 2018-11-12 15:49 童彪 阅读(141) 评论(0) 推荐(0) 编辑

2018年11月6日

js md5

摘要: const crypto = require('crypto'); var obj = crypto.createHash('md5'); obj.update('12');// 签名 var str = obj.digest('hex') //16禁止 console.log(str); md5 阅读全文

posted @ 2018-11-06 23:05 童彪 阅读(185) 评论(0) 推荐(0) 编辑

2018年11月5日

mysql 基本

摘要: 客户端: navicat-管理工具, 1.主键 : 唯一.性能高, 2.库-管理 表-存 字段 行 3.连接 //createConnection(哪台服务器, 用户名, 密码, 库) var db=mysql.createConnection({host: 'localhost', user: ' 阅读全文

posted @ 2018-11-05 21:20 童彪 阅读(110) 评论(0) 推荐(0) 编辑

2018年11月2日

nodejs 热更新插件

摘要: 键入命令: npm -g install supervisor supervisor必须安装到全局 可以用supervisor 来启动服务 命令supervisor app.js 阅读全文

posted @ 2018-11-02 09:19 童彪 阅读(262) 评论(0) 推荐(0) 编辑

2018年11月1日

nodejs 解决跨域

摘要: “简单请求” 请求方法是以下三种方法之一: HEAD GET POST “非简单请求”HTTP的头信息不超出以下几种字段: Accept Accept-Language Content-Language Last-Event-ID Content-Type: application/x-www-fo 阅读全文

posted @ 2018-11-01 23:02 童彪 阅读(214) 评论(0) 推荐(0) 编辑

2018年10月29日

vue .map 文件

摘要: 参数: productionSourceMap:false 这个改为false。去掉打包产生的map文件 map文件的作用:定位线上错误代码位置; 阅读全文

posted @ 2018-10-29 11:38 童彪 阅读(391) 评论(0) 推荐(0) 编辑

vue 设置背景

摘要: <span :style="{ 'background': 'url(' + aboutImg1 + ') no-repeat center center', 'background-size': '100% 100%'}">1</span> .aboutL ul > li > span.about 阅读全文

posted @ 2018-10-29 10:56 童彪 阅读(265) 评论(0) 推荐(0) 编辑

2018年10月24日

vue 监听state 任意值变化、监听mutations actions

摘要: // store.watch((state) => state.count + 1, (newCount) => { // console.log(' 监听') // }) // store.subscribe((mutations, state) => { // console.log(mutations) // }) // store.subscribeAction((actions, st... 阅读全文

posted @ 2018-10-24 15:31 童彪 阅读(851) 评论(0) 推荐(0) 编辑

vue 路由守卫

摘要: router.beforeEach((to, from, next) => { // store.commit('numberCardModuleConInit', { // url: to.path // }); store.state.fromPage = from; store.commit("setHeaderConfig", to.path); // se... 阅读全文

posted @ 2018-10-24 15:29 童彪 阅读(180) 评论(0) 推荐(0) 编辑

开发webapp手机返回键 退出问题 摘录

摘要: mui进行手机物理键的监听 确保引入mui 调用以下函数 阅读全文

posted @ 2018-10-24 13:39 童彪 阅读(328) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 39 下一页

导航