上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 39 下一页

2017年12月17日

es6 class 了解

摘要: ES6之class ES5中通常通过构造函数和原型的组合形式来创建对象。在ES6中引入class作为对象模板, Class定义语法 class point{ constructor(x,y){ this.x = x; this.y = y; } toString(){ return '[' + th 阅读全文

posted @ 2017-12-17 16:03 童彪 阅读(135) 评论(0) 推荐(0) 编辑

2017年12月4日

jQuery load() 判断 iframe 是否加载完毕

摘要: 判断 iframe 是否加载完毕 方法、jQuery load() Js代码 var frm = document.getElementById('myiframe'); $(frm).load(function(){ // 等iframe加载完毕 dosomething(); }); 方法、jQu 阅读全文

posted @ 2017-12-04 16:58 童彪 阅读(1306) 评论(0) 推荐(0) 编辑

2017年11月4日

VUE项目 - IE报vuex requires a Promise polyfill in this browser问题解决

摘要: 第一步: 安装 babel-polyfill 。 babel-polyfill可以模拟ES6使用的环境,可以使用ES6的所有新方法 第二步: 在 Webpack/Browserify/Node中使用 在webpack.config.js文件中,使用 替换 阅读全文

posted @ 2017-11-04 23:03 童彪 阅读(141) 评论(0) 推荐(0) 编辑

2017年10月31日

git_基本使用

摘要: 1.默认你已经安装了,git的客户端,这里我们使用git bash操作。 2.执行git init命令: git ini 3.在本地创建ssh key: ssh-keygen -t rsa -C "wuyan@qql.com" 4.不设置 任何秘密 回车下一步 生成key 4.1设置username 阅读全文

posted @ 2017-10-31 22:54 童彪 阅读(273) 评论(0) 推荐(0) 编辑

同源

摘要: 同源是指,域名,协议,端口均相同; 阅读全文

posted @ 2017-10-31 17:49 童彪 阅读(201) 评论(0) 推荐(0) 编辑

axios-使用

摘要: 当然也可以用script引入 阅读全文

posted @ 2017-10-31 11:46 童彪 阅读(105) 评论(0) 推荐(0) 编辑

2017年10月28日

vue 起步_code

摘要: {{ msg }} {{data1}} {{item.name}} - {{item.price}} - {{index}} {{ num + 1}} {{index + ":" + item}} ... 阅读全文

posted @ 2017-10-28 18:26 童彪 阅读(162) 评论(0) 推荐(0) 编辑

vue -Missing space before value for key 'path'vue.js解决空格报错

摘要: webpack.base.config.js文件注释掉下面的东西!! module: { rules: [ /*{ test: /\.(js|vue)$/, loader: 'eslint-loader', enforce: "pre", include: [resolve('src'), reso 阅读全文

posted @ 2017-10-28 15:47 童彪 阅读(1923) 评论(0) 推荐(0) 编辑

2017年10月27日

node / npm 配置问题

摘要: 安装nodejs 后运行 npm 命令无响应处理方法 安装和卸载过nodejs, 也编辑过 C:\Users\{账户}\下的.npmrc文件。 再全新安装nodejs ,运行npm 命令,无响应。 处理方法,删除C:\Users\{账户}\下的.npmrc文件 再运行npm 命令,正常 1.环境配置 阅读全文

posted @ 2017-10-27 23:35 童彪 阅读(389) 评论(0) 推荐(0) 编辑

vue 起步

摘要: # 全局安装 vue-cli $ npm install --global vue-cli # 创建一个基于 webpack 模板的新项目 $ vue init webpack my-project # 安装依赖,走你 $ cd my-project $ npm install $ npm run 阅读全文

posted @ 2017-10-27 12:04 童彪 阅读(266) 评论(0) 推荐(0) 编辑

上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 39 下一页

导航