上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: (1)Array.from(aarr,fn,obj) function fn(dr, sd, d) { /*Array.from 类数组转化为数组*/ console.log(arguments) var arr = Array.from(arguments); console.log(arr); var arr... 阅读全文
posted @ 2017-09-13 08:46 阿奇blog 阅读(328) 评论(0) 推荐(0)
摘要: /*apply和call都是为了改变某个函数运行时的上下文而存在的(就是为了改变函数内部this的指向); 如果使用apply或call方法,那么this指向他们的第一个参数,apply的第二个参数是一个参数数组, call的第二个及其以后的参数都是数组里面的元素,就是说要全部列举出来;*/ var 阅读全文
posted @ 2017-09-11 14:53 阿奇blog 阅读(193) 评论(0) 推荐(0)
摘要: (1) /*通过this传递了对象的引用*/ function identify() { console.log(this); //this指向不是window 而是call改变指向的对象 return this.name.toUpperCase(); } function speak() { var greeting =... 阅读全文
posted @ 2017-09-09 14:30 阿奇blog 阅读(186) 评论(0) 推荐(0)
摘要: <?php/** * Created by PhpStorm. * User: DY040 * Date: 2017/9/8 * Time: 16:46 *//*php也有转义字符/*///echo "hello php \"";$str = "hello php \"";echo $str;ech 阅读全文
posted @ 2017-09-09 10:40 阿奇blog 阅读(275) 评论(3) 推荐(0)
摘要: modele.js getmodule.js 用exports 返回的是一个对象中的每个属性 阅读全文
posted @ 2017-09-08 14:50 阿奇blog 阅读(223) 评论(0) 推荐(0)
摘要: beforeCreate(){ console.log(new Date().getTime()) let data = this.text; console.log('组件创立之前') console.log('beforeCreate', data ? "数据获取成功" : '数据获取失败'); 阅读全文
posted @ 2017-09-08 08:30 阿奇blog 阅读(156) 评论(0) 推荐(0)
摘要: 1)引入组件时路径一定要是./ or ../开头 import Goback from './public/goback.vue' 2)这类输入框绑定的值不是:value 不是 :value 不然数据到死都不会双向绑定 <input type="text" v-model="a">3)数据监听wat 阅读全文
posted @ 2017-09-07 15:51 阿奇blog 阅读(221) 评论(0) 推荐(1)
摘要: body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, p, blockquote, th, td { margin: 阅读全文
posted @ 2017-09-07 11:09 阿奇blog 阅读(184) 评论(0) 推荐(0)
摘要: 1):$ npm install less less-loader --save 2)style里 <style lang='less'> 2): $ npm i vue-resource --save import VueResource from 'vue-resource' Vue.use(V 阅读全文
posted @ 2017-09-07 10:32 阿奇blog 阅读(3650) 评论(0) 推荐(0)
摘要: !function () { var meta = document.createElement('meta'); var num = 1 / window.devicePixelRatio; meta.name = 'viewport'; meta.content = 'width=device- 阅读全文
posted @ 2017-09-07 10:04 阿奇blog 阅读(193) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页