随笔分类 -  【Javascript APP】

Javascript APP
摘要:json.txt文件内容格式,可以扩展到php等动态文件json.phpsuccess_jsonpCallback({"msg":"this is a jquery jsonp test message!"}) 阅读全文
posted @ 2015-10-23 11:51 午时的海 阅读(1232) 评论(0) 推荐(0) 编辑
摘要:npminstall-gcnpm--registry=https://registry.npm.taobao.org 阅读全文
posted @ 2015-10-20 17:22 午时的海 阅读(179) 评论(0) 推荐(0) 编辑
摘要:什么是 ajaxajax 即“Asynchronous JavaScript and XML”(异步 JavaScript 和 XML),也就是无刷新数据读取。http 请求首先需要了解 http 请求的方法(GET 和 POST)。GET 用于获取数据。GET 是在 URL 中传递数据,它的安全性... 阅读全文
posted @ 2015-05-07 17:39 午时的海 阅读(149) 评论(0) 推荐(0) 编辑
摘要:if(hidden != 1){ $.ui.showMask(); var _aaa = setTimeout(function(){ $.ui.hideMask(); },5000); } //beforeSend,complete有方法但不能用 var url = DOMAIN + url; var object = { type : 'get', async : false, cache ... 阅读全文
posted @ 2014-01-24 17:08 午时的海 阅读(733) 评论(0) 推荐(0) 编辑
摘要:parse用于从一个字符串中解析出json对象,如var str = '{"name":"huangxiaojian","age":"23"}'结果:JSON.parse(str) Object age: "23" name: "huangxiaojian" __proto__: Object注意:单引号写在{}外,每个属性名都必须用双引号,否则会抛出异常。stringify()用于从一个对象解析出字符串,如var a = {a:1,b:2}结果:JSON.s 阅读全文
posted @ 2014-01-17 17:40 午时的海 阅读(193) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title></title><style type="text/css">#news{overflow:hidden; height:130px;width:250px;border:1px solid red;}ul{margin:0}</style><script type="text/javascript">//需要滚动的对 阅读全文
posted @ 2013-06-06 23:43 午时的海 阅读(163) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title></title><style type="text/css">#mydemo{border:1px solid #333;width:300px;height:250px;display:none;/*绝对定位*/position:absolute;background-color:#fff;}.btn{width:80px;height:40px;border 阅读全文
posted @ 2013-06-06 23:41 午时的海 阅读(340) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><meta http-equiv="Content-Type" content=" 阅读全文
posted @ 2013-06-06 23:37 午时的海 阅读(143) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><meta http-equiv="Content-Type" content=" 阅读全文
posted @ 2013-06-06 23:35 午时的海 阅读(124) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html><html onkeydown="run(event)"><head><meta charset="utf-8"><title></title><style type="text/css">#main{width:300px;height:300px;border:1px solid blue;}#tank{width:50px;height:50px;border:1px solid red;}</style> 阅读全文
posted @ 2013-06-05 20:13 午时的海 阅读(220) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title>连连看</title><style type="text/css">#main{width:550px;height:300px;border:1px solid blue;overflow:hidden;zoom:1;}#main div{width:50px;height:50px;background-color:#F5E488;float:left;ma 阅读全文
posted @ 2013-06-05 20:12 午时的海 阅读(181) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title>三级联动</title></head><body>省<select name="pro" onchange="showCity()"><!-- <option value="1">北京</option> --></select>市<select 阅读全文
posted @ 2013-06-05 20:11 午时的海 阅读(195) 评论(0) 推荐(0) 编辑
摘要:一、Arguments该对象代表正在执行的函数和调用他的函数的参数。[function.]arguments[n]参数function :选项。当前正在执行的 Function 对象的名字。n :选项。要传递给 Function 对象的从0开始的参数值索引。说明:Arguments是进行函数调用时,除了指定的参数外,还另外创建的一个隐藏对象。Arguments是个类似数组但不是数组的对象,说他类似数组是因为其具备数组相同的访问性质及方式,能够由arguments[n]来访问对应的单个参数的值,并拥有数组长度属性length。还有就是arguments对象存储的是实际 传递给函数的参数,而不局限 阅读全文
posted @ 2013-06-01 21:30 午时的海 阅读(130) 评论(0) 推荐(0) 编辑
摘要:Xclose广告sss 阅读全文
posted @ 2011-08-06 23:42 午时的海 阅读(190) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示