摘要: 使用highcharts三个理由:1》手机适配2》大数据的支持3》svg的优势缺点:不开源、学习资料少 官方有基本的常规用法,一般都是基于jquery写的例子,也可以自己封装函数,用原生来调取,性能简单测试一下,没发现两者有什么大的区别。 heightcharts.js是一些简单图表的框架js,但是 阅读全文
posted @ 2016-12-26 23:49 Jason齐齐 阅读(3039) 评论(0) 推荐(1) 编辑
摘要: 自定义依赖注入的方法 1.factory('name',function () { return function(){ } }); 2.provider('name',function(){ this.$get=function(){ return function(){ } }; }); 3.s 阅读全文
posted @ 2016-12-21 23:09 Jason齐齐 阅读(1389) 评论(0) 推荐(0) 编辑
摘要: 1.angular中$http的服务: $http.get(url,{params:{参数}}).success().error(); $http.post(url,{params:{参数}}).success().error(); $http.jsonp(url,{params:{wd:'',cb 阅读全文
posted @ 2016-12-19 13:04 Jason齐齐 阅读(539) 评论(0) 推荐(1) 编辑
摘要: angular购物车小计 价格: 个数: 商品总价:{{sum() | currency:'¥'}} 运费合计:{{phone.fre | currency:'¥'}} 总计:{{sum() + phone.fre | currency:'¥'}} ... 阅读全文
posted @ 2016-12-04 12:16 Jason齐齐 阅读(986) 评论(0) 推荐(1) 编辑
摘要: 六、原生Promise ES6: 七、新方法 1》箭头函数 根据参数个数不同,分这几种情况:() => { … } // 零个参数用 () 表示x => { … } // 一个参数可以省略 ()(x, y) => { … } // 多参数不能省略 () eg: 2》复制数组 arr2.from(ar 阅读全文
posted @ 2016-11-27 22:56 Jason齐齐 阅读(604) 评论(0) 推荐(1) 编辑
摘要: 查询浏览器对ES6的支持情况https://kangax.github.io/compat-table/es6/ Chrome、MS Edge、Firefox、Safari、Node和其它很多环境都已经嵌入程序以支持 JavaScript ES6 的大部分功能。 一、变量和变量的作用域ES5: 定义 阅读全文
posted @ 2016-11-26 23:38 Jason齐齐 阅读(6740) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-11-24 22:19 Jason齐齐 阅读(376) 评论(0) 推荐(1) 编辑
摘要: Document 阅读全文
posted @ 2016-11-22 22:47 Jason齐齐 阅读(162) 评论(0) 推荐(1) 编辑
摘要: ajax的数据传输是单向的,客户端和服务端没有连接 客户端建立连接发送请求 服务器端沿着建立的连接返回相应 断开连接 websocket则是可以在客户端和服务器端进行双向的数据接收和发送 打个比方:小明在客厅看电视,小明的媳妇在卫生间洗衣服,小明的爸爸在书房看报纸,小明的妈妈在厨房做饭;小明的爸爸饿 阅读全文
posted @ 2016-11-21 23:14 Jason齐齐 阅读(2214) 评论(0) 推荐(2) 编辑
摘要: 无标题文档 阅读全文
posted @ 2016-11-20 23:07 Jason齐齐 阅读(6157) 评论(1) 推荐(2) 编辑