会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Shimily
学而不思则罔,思而不学则殆
博客园
首页
新随笔
联系
管理
上一页
1
···
107
108
109
110
111
112
113
114
115
···
198
下一页
2015年6月3日
隐藏 select 样式 appearance: none;
摘要: select{ position: absolute; left: 0; top: 0;width: 100%; height: 3em; opacity: 0;text-align:center;-webkit-appearance: none; -moz-appearance: none; -o...
阅读全文
posted @ 2015-06-03 09:13 Shimily
阅读(316)
评论(0)
推荐(0)
2015年6月2日
js如何生成随机数
摘要: js生成随机数有以下几种方式1、JavaScript Math.random()内置函数random函数返回值返回0和1之间的伪随机数,可能为0,但总是小于1,[0,1)random函数示例//返回随机数document.write(Math.random());//返回10-20的随机数docum...
阅读全文
posted @ 2015-06-02 10:34 Shimily
阅读(6093)
评论(0)
推荐(0)
常用 JS 【验证函数】
摘要: 一、数字的验证 /**//** * 检查输入的一串字符是否全部是数字 * 输入:str 字符串 * 返回:true 或 flase; true表示为数字 */function checkNum(str){ return str.match(/\\D/) == null;...
阅读全文
posted @ 2015-06-02 09:48 Shimily
阅读(257)
评论(0)
推荐(0)
判断iframe是否加载完成
摘要: 当我们需要加载完成一个IFrame后,才开始加载另一个IFrame或者其它的内容,这个时候需要用到IFrame加载完成的方法。判断的方法JScript 代码 复制 var iframe01 = document.getElementById("If01"); iframe01.src = "ht...
阅读全文
posted @ 2015-06-02 09:41 Shimily
阅读(746)
评论(0)
推荐(0)
上一页
1
···
107
108
109
110
111
112
113
114
115
···
198
下一页