码迷,mamicode.com
首页 >  
搜索关键字:uicolor random    ( 8060个结果
UIWebView 设置背景为透明
UIWebView的背景如何设置成为透明? [webview setBackgroundColor:[UIColor clearColor]]; [webview setOpaque:NO]; 两句代码搞定,UITabView方法也是这样!...
分类:Web程序   时间:2014-10-21 15:31:53    阅读次数:176
js生成GUID
1 function S4() {2 return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);3 }4 function NewGuid() {5 return (S4() + S4() + "-"...
分类:Web程序   时间:2014-10-21 12:09:24    阅读次数:216
随机数和随机字符串的生成
function getRandomNumber(min,max){ var min = Math.floor(min); var max = Math.floor(max); return Math.floor(Math.random()*(max-min)); } function get...
分类:其他好文   时间:2014-10-21 12:03:30    阅读次数:208
random函数
Java中存在着两种Random函数:一、java.lang.Math.Random;调用这个Math.Random()函数能够返回带正号的double值,该值大于等于0.0且小于1.0,即取值范围是[0.0,1.0)的左闭右开区间,返回值是一个伪随机选择的数,在该范围内(近似)均匀分布。例如下面的...
分类:其他好文   时间:2014-10-20 23:15:19    阅读次数:240
PHP中CKEditor和CKFinder配置
1、/ckeditor/config.js, 配置文件,如果不想写太多,可以直接写好默认配置(语言,菜单栏,宽度),有需要可以百度config配置config.language = ‘en’;config.skin = ‘v2’;config.uiColor = ‘#AADC6E’;config.t...
分类:Web程序   时间:2014-10-20 18:53:41    阅读次数:232
生成n~m的随机数
生成n-m,包含n但不包含m的整数:第一步算出 m-n的值,假设等于w第二步Math.random()*w第三步Math.random()*w+n第四步parseInt(Math.random()*w+n, 10)生成n-m,不包含n但包含m的整数:?第一步算出 m-n的值,假设等于w第二步Math...
分类:其他好文   时间:2014-10-20 16:58:50    阅读次数:178
Thinkphp在Tpl中调用common.php中的公共函数
Common/common.php//产生随机验证码function random($length, $chars = '0123456789'){ //随机生成的逻辑 return $hash;}Tpl/index.html{:random(5)}得到的结果:9536
分类:Web程序   时间:2014-10-20 11:38:40    阅读次数:214
使用 Chrome 生成 UUID
打开Chrome,键入 Ctrl + Shift + J,打开 JS 控制台,然后输入下面的JS代码:function getGUID( ){ function _p8(s) { var p = (Math.random().toString(16)+"000000000").substr(2,8....
分类:其他好文   时间:2014-10-20 11:16:08    阅读次数:541
TMapTextfile v.99/1
ByHellinger Software.Class to handle text files as memory mapped files.Including efficient methodes for access like sequentiell reador random access r...
分类:其他好文   时间:2014-10-20 09:58:03    阅读次数:251
js调用ashx文件 2种类型
js中使用get 的时候, ashx文件中,获取字符串 function check(id, sfsy) { $.get('/admin/ashx/check.ashx', { r: Math.random(), id: id, sfsy: escape(sfsy) }, fu...
分类:Web程序   时间:2014-10-20 09:51:19    阅读次数:173
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!