2017年8月26日
摘要: 1.ExceptionsManager.js:63 One of the sources for assign has an enumerable key on the prototype chain. Are you trying to assign a prototype property? W 阅读全文
posted @ 2017-08-26 11:13 oldcowstruggle 阅读(422) 评论(0) 推荐(0) 编辑
  2017年7月13日
摘要: 1.在VUE项目中使用jsx语法 安装依赖 修改.babelrc 阅读全文
posted @ 2017-07-13 11:28 oldcowstruggle 阅读(104) 评论(0) 推荐(0) 编辑
  2017年6月28日
摘要: 安装:npm install -g pm2 启动程序:pm2 start <app_name|id|all> 列举进程:pm2 list 退出程序:pm2 stop <app_name|id|all> 重起应用:pm2 restart 程序信息:pm2 describe id|all 监控:pm2 阅读全文
posted @ 2017-06-28 18:19 oldcowstruggle 阅读(347) 评论(0) 推荐(0) 编辑
  2017年6月27日
摘要: 使用Decorator 首先要安装相应的Babel插件 npm install babel-plugin-transform-decorators-legacy --save,同时,需要在.babelrc中的plugins里做相应配置: "plugins": [ "transform-class-p 阅读全文
posted @ 2017-06-27 15:42 oldcowstruggle 阅读(306) 评论(0) 推荐(0) 编辑
  2017年4月11日
摘要: 第一次使用VUE进行开发,在获取图片验证码与服务器进行比对时,提示验证码错误,最后发现请求时未携带cookie,导致SESSIONID改变致使校验失败. 解决办法 Vue.http.options.emulateJSON = true;Vue.http.options.xhr = { withCre 阅读全文
posted @ 2017-04-11 08:31 oldcowstruggle 阅读(2164) 评论(0) 推荐(1) 编辑
  2016年11月27日
摘要: 首先配置下webpack.config.js 入口文件entry,整合js后输出output,loaders:需要jsx-loader将jsx转换成js 创建html 上面配置文件中的入口文件./app/app.js 先来创建此文件 用require先将依赖导入进来,然后就是用react创建组件 再 阅读全文
posted @ 2016-11-27 23:19 oldcowstruggle 阅读(365) 评论(0) 推荐(0) 编辑
  2016年11月7日
摘要: JSON.stringify(JSON.parse(OBJECT), undefined, 2); 阅读全文
posted @ 2016-11-07 21:59 oldcowstruggle 阅读(147) 评论(0) 推荐(0) 编辑
  2016年10月16日
摘要: var EventsListener=function(){ var uniqid=-1,obj={}; //添加监听 var listen=function(key,fn){ obj[key]?'':obj[key]=[]; var tagid=(++uniqid).toString(); obj[key].push({ ... 阅读全文
posted @ 2016-10-16 21:39 oldcowstruggle 阅读(254) 评论(0) 推荐(0) 编辑
  2016年9月4日
摘要: validate 用户名 密码 确认密码 ... 阅读全文
posted @ 2016-09-04 17:53 oldcowstruggle 阅读(357) 评论(0) 推荐(1) 编辑
  2016年5月5日
摘要: 布局文件 mark 阅读全文
posted @ 2016-05-05 22:56 oldcowstruggle 阅读(1082) 评论(0) 推荐(0) 编辑