https://my.oschina.net/lengwei/blog/637380; http://blog.csdn.net/mare_blue/article/details/51388403; http://blog.csdn.net/baidu_31093133/article/detai ...
分类:
其他好文 时间:
2017-01-23 20:07:38
阅读次数:
209
3093: [Fdu校赛2012] A Famous Game Description Mr. B and Mr. M like to play with balls. They have many balls colored in blue and red. Firstly, Mr. B rand ...
分类:
其他好文 时间:
2017-01-23 15:32:31
阅读次数:
191
1 在JSX的元素中写入内联样式,例如<div style={"color:blue"}></div> 报错:warning:Style prop value must be an object react/style-prop-object 原因:在React框架的JSX编码格式要求,style必 ...
分类:
其他好文 时间:
2017-01-22 15:22:09
阅读次数:
2979
1.push()和pop() push() 可以将数据依次传进数组里面,从尾部传入,并且返回的是新数组的长度 例如 var arr=new Array(); var count=arr.push('red','blue'); console.log(count);//2; console.log(a ...
分类:
编程语言 时间:
2017-01-19 18:04:39
阅读次数:
237
tintColor每一个view都有一个tintcolor,类似于魔法色,实现类似于换肤的效果。每一个view的subview都集成view的tintcolor,当然subview可以指定自己的tintcolor如果不指定的话,默认为blue对于tabBar,不指定tintColor的话,效果如下:... ...
分类:
其他好文 时间:
2017-01-14 11:18:39
阅读次数:
224
直接看代码: background: blue; /*页面背景为蓝色,很简单的代码*/background-image:url(small.jpg); /*页面背景是名字叫small.jpg的图片*/background-repeat: no-repeat; /*水平方向显示图片repeat-x 竖 ...
分类:
Web程序 时间:
2017-01-13 21:59:51
阅读次数:
245
array_rand(array,number);作用:随机获取数组中number个key值参数:array:数组number:规定返回的参数的个数返回值:返回随机的array数组中的key值例子:$arr=array(‘a‘=>‘blue‘,‘b‘=>‘red‘,‘c‘=>‘yellow‘,‘d‘=>‘purple‘);
$res=array_rand($arr,3);
print_r($re..
分类:
编程语言 时间:
2017-01-11 14:46:06
阅读次数:
270
在写页面布局的时候经常要用到左边宽度固定右边自适应 第一种写法: .left { position: absolute; height: 100%; width: 300px; background-color: blue; .left { position: absolute; height: 1 ...
分类:
其他好文 时间:
2017-01-11 14:38:39
阅读次数:
170
background: linear-gradient(to right,red,orange,yellow, green, blue,indigo,violet); background: linear-gradient(top,#ccc, #000); background: radial-gr... ...
分类:
其他好文 时间:
2017-01-08 17:34:59
阅读次数:
250
在服务器端的php脚本: <?php $data['id'] = 1; $dat['name'] = "mary"; $da['red']= array_merge($data,$dat); $data1['id'] = 2; $dat1['name'] = "燕子"; $da['blue']= a ...
分类:
Web程序 时间:
2017-01-07 22:32:53
阅读次数:
244