上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 55 下一页

2018年8月7日

使用 v-model 实现 双向绑定.(子组件和父组件.)

摘要: vue 自定义组件 v-model双向绑定、 父子组件同步通信 父子组件通信,都是单项的,很多时候需要双向通信。方法如下: 1、父组件使用:msg.sync="aa" 子组件使用$emit('update:msg', 'msg改变后的值xxx') 2、父组件传值直接传对象,子组件收到对象后可随意改变 阅读全文

posted @ 2018-08-07 14:11 正义的伙伴! 阅读(8153) 评论(0) 推荐(0) 编辑

2018年8月3日

node.js express 启用 https

摘要: 服务端和客户端各有一对公钥和私钥,使用公钥加密的数据只能用私钥解密,建立https传输之前,客户端和服务端互换公钥。客户端发送数据前使用服务端公钥加密,服务端接收到数据后使用私钥解密,反之亦如此。 公钥私钥的生成可用openssl(linux,mac自带,windows上需要自己安装)工具来生成,具 阅读全文

posted @ 2018-08-03 14:30 正义的伙伴! 阅读(13763) 评论(1) 推荐(0) 编辑

2018年8月2日

IIS 配置 url 重写...

摘要: 阅读全文

posted @ 2018-08-02 09:04 正义的伙伴! 阅读(1250) 评论(0) 推荐(1) 编辑

2018年7月31日

不带 www 跳转 到 带 www 网站..

摘要: Apache : 阅读全文

posted @ 2018-07-31 15:44 正义的伙伴! 阅读(2230) 评论(0) 推荐(0) 编辑

2018年7月24日

math.js 使用...

摘要: 没有这句..依旧不能精确计算... 阅读全文

posted @ 2018-07-24 15:24 正义的伙伴! 阅读(575) 评论(0) 推荐(0) 编辑

2018年6月27日

php Apache No input file

摘要: RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] 变为 RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] 阅读全文

posted @ 2018-06-27 16:04 正义的伙伴! 阅读(130) 评论(0) 推荐(0) 编辑

2018年6月26日

JDBC 连接 postgresql 时区变 UTC

摘要: 加上 时区 语句 ..-Duser.timezone=PRC 阅读全文

posted @ 2018-06-26 15:49 正义的伙伴! 阅读(1928) 评论(0) 推荐(0) 编辑

2018年6月19日

PHP 中 快捷的三元运算...

摘要: a!=null ? a: 123 当 a 不为空时,返回 123, 可简写为 a ?: 123(a 不为null 不为 '','0',0 时,返回它本身,否则返回123...) 阅读全文

posted @ 2018-06-19 10:05 正义的伙伴! 阅读(181) 评论(0) 推荐(0) 编辑

2018年6月5日

vue-persist 为 vuex 持久化!!

摘要: npm install --save vuex-persist import VuexPersistence from 'vuex-persist' const vuexLocal = new VuexPersistence({ storage: window.localStorage }) con 阅读全文

posted @ 2018-06-05 22:43 正义的伙伴! 阅读(1335) 评论(2) 推荐(0) 编辑

elementui bug ..

摘要: .el-menu { overflow: hidden !important;}element 菜单导航栏 会 超出 父组件一点..在组件中加上上边那句来隐藏!!! 阅读全文

posted @ 2018-06-05 16:33 正义的伙伴! 阅读(220) 评论(0) 推荐(0) 编辑

上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 55 下一页

导航

//增加一段JS脚本,为目录生成使用