GRUNT安装与配置 Posted on 2016-08-19 18:13 听风吹来的种子 阅读(47) 评论(0) 编辑 收藏 安装 CLI npm install -g grunt-cli//全局安装 npm init //初始化package.json npm init 命令会创建一个基本的p ...
分类:
Web程序 时间:
2017-01-23 15:17:34
阅读次数:
298
当我们需要自定义一个View控件时,会有 initWithFrame、initWithCoder、awakeFromNib 这三个系统方法,关于这三个方法何时调用,如何调用,有时候可能很多人会弄混淆。 下面我会就理论结合代码举例来说明一下: 1、initWithFrame 这个方法是当控件不是从xi ...
分类:
移动开发 时间:
2017-01-23 15:11:47
阅读次数:
190
$scope.addalerts = []; /* 查询 */ $scope.proID = $stateParams.id; if($scope.proID){ GoodsModelService.goodsInfo({ id:$scope.proID },function(result){ ..... ...
分类:
其他好文 时间:
2017-01-23 14:41:02
阅读次数:
189
#include<iostream> #include<stack> #include<string> #include<cctype> using namespace std; #define N 30 struct node { char m; int r,c; } a[N]; string s ...
分类:
其他好文 时间:
2017-01-22 23:43:11
阅读次数:
214
方法是在{}中添加字段 key-value 一一对应,如下: 具体事例: 参考:https://segmentfault.com/q/1010000002471698 ...
分类:
其他好文 时间:
2017-01-22 23:38:30
阅读次数:
363
jquery: <div id="divId" class="divTable"><div class="tableBody"><ul ><li ><input type="checkbox" value="501" ></li></ul></div></div> $("input[type='ch ...
分类:
Web程序 时间:
2017-01-22 20:20:14
阅读次数:
242
以太网报文的结构如下: 其中,以太网的帧头: 14 Bytes:MAC目的地址48bit(6B),MAC源地址48bit(6B),Type域2B,一共14B。 IP头部: TCP头部: http://blog.163.com/tianshuai11@126/blog/static/618945432 ...
分类:
其他好文 时间:
2017-01-22 18:12:49
阅读次数:
453
<script type="text/javascript"> //随机取得数组中的一个元素 function Rand(){ var arr=[11,22,33,44]; var a=Math.floor(Math.random()*arr.length);//Math.floor(Math.ra ...
分类:
编程语言 时间:
2017-01-22 18:03:55
阅读次数:
221
WebpackWebpack是时下最流行的模块打包器
它的主要任务就是将各种格式的JavaScript代码,甚至是静态文件
进行分析、压缩、合并、打包,最后生成浏览器支持的代码
特点:
代码...
分类:
Web程序 时间:
2017-01-22 15:25:46
阅读次数:
240
1、将折线图的线改成有弧度线展示:在series加上smooth :true 列如: series : [ { name:'使用次数', type:'line', smooth :true, yAxisIndex: 1, data:[1,2,3] } ] ...
分类:
其他好文 时间:
2017-01-22 15:06:09
阅读次数:
171