随笔分类 - javascript
摘要:手机号查询 手机号码归属地查询 请输入手机号码 查询 号码有误 或 无数据 手机号码: 归属省份: 运 ...
阅读全文
摘要:html文件php+jquery+ajax+json简单小例子 姓名: 密码: php文件
阅读全文
摘要:很有意思的两种连接 ,效果相同。 不同之处:aehyok({"result":"我是远程js带来的数据"}); 不能放在fucntion aehyok 上面,否则失效 index.html ...
阅读全文
摘要:html代码 index.html js代码aehyok({"result":"我是远程js带来的数据"});
阅读全文
摘要:思路:用ajax调取区域数据ajax($parendid,ID) parendid 是父级I; 后面是需要给值“shiqu”,“quyu”html代码 jsfunction area(a,b){ $.ajax({ u...
阅读全文
摘要:js网址收藏:懒人图库:www.lanrentuku.com懒人之家:http://www.lanrenzhijia.com/jquery/list_5_2.html1.UI下载:http://jqueryui.com/http://www.w3cschool.cc/jqueryui/example...
阅读全文
摘要:setInterval("f()",1000) 每隔1秒就执行一次f() clearInterval 关闭clearIntervalsetTimeout("f()",1000) 1秒后执行f(),只执行一次clearTimeout 关闭setTimeout1.简单版应用html代码 ...
阅读全文
摘要:创建cookiedocument.cookie='like=1'; //创建 cookie键名和值var str = document.cookie;获取cookie读取cookiefunction getCookie(c_name){if (document.cookie.length>0){...
阅读全文
摘要:function aa(i){ var tm = setInterval(function(){ var t = $(window).scrollTop(); var d = i < t ? Math.min((i-t)/10, -1) : Math.max((i-...
阅读全文
摘要:网页可见区域宽: document.body.clientWidth;网页可见区域高: document.body.clientHeight;网页可见区域宽: document.body.offsetWidth(包括边线的宽);网页可见区域高: document.body.offsetHeight(...
阅读全文
摘要:window.onresize=findDimensions; 改变窗口的是后会触发 这个事件
阅读全文
摘要:条件:1八位数;2.以领开头;3.末尾要依次递增
阅读全文
摘要:1.数组转字符串var a, b;a = new Array(0,1,2,3,4);b = a.join("-");2.字符串转数组var s = "abc,abcd,aaa";ss = s.split(",");3.数字转字符串toStringvar i = 10;var s = i.toStri...
阅读全文
摘要:function RondomPass(number){ var arr = new Array; var arr1 = new Array("0","1","2","3","4","5","6","7","8","9"); for(var i=0;i<number;i++...
阅读全文
摘要:html 区域 jsajax,php代码function region($parent_id,$region_type){ //region(0,北京市) $where = "where parent_id = $parent_id"; $sql = mysql_query("select * from rv_region $where"); //echo $wh...
阅读全文
摘要:图:html代码 产品 {$pro_all} [+] 台 js代码
阅读全文
摘要:用途一:"返回顶部";window.onscroll = function(){ var t = document.documentElement.scrollTop || document.body.scrollTop; var top_div = document.getElementById( "top_div" ); if( t >= 300 ) { top_div.style.display = "inline"; } else { top_div.style.display = "none"; }
阅读全文

浙公网安备 33010602011771号