1.window对象,就是把浏览器与javascript相关联。2.全局变量(vara)是window对象的属性;全局函数(vara={})是window对象的方法。3.window.document.getElementById("header");是window对象的方法。4.获得浏览器窗口尺寸...
分类:
编程语言 时间:
2014-10-20 15:04:39
阅读次数:
160
//--> //loading //获取浏览器的高度与宽度var _PageHeight = document.documentElement.clientHeight, _PageWidth = document.documentElement.clientWidth;//判断loading...
分类:
其他好文 时间:
2014-10-20 14:54:08
阅读次数:
124
Try this way....As per Apple Document, ImagePicker Controller never Rotate in Landscape mode. You have to use in Potrait Mode only.For disable Landsca...
分类:
其他好文 时间:
2014-10-20 14:44:23
阅读次数:
208
#list {} var oUl = document.getElementById('list'); 静态方法 只能document获取一个元素li {} document.getElementsByTagName('li') ; 动态方法 可以变量或者document获取一堆元素的集合#list...
分类:
Web程序 时间:
2014-10-20 13:04:04
阅读次数:
381
Git Repo Gerrit User ManualRevision HistoryRevision # Description Date Author 0.1 Initial this document 2014/09/05 Deman Lu 0.2 Add First t...
分类:
其他好文 时间:
2014-10-20 11:22:51
阅读次数:
361
/*获取body中的内容*/
//var content = document.getElementsByTagName("body")[0].innerHTML;
/*如果body中有很多iframe那么就要循环去找了*/
var contents = document.getElementsByTagName("ifra...
分类:
Web程序 时间:
2014-10-20 10:07:08
阅读次数:
210
点击 “通讯录”---->“工具” ---- >导入其他邮箱联系人 在邮箱账号处添加我们的测试代码: 1. <IMG?SRC=#?onmouseover="alert(‘F1n4lly‘)"> 2. <a?onmouseover=alert(document.cookie)>xxs?link</a> 更多有...
分类:
其他好文 时间:
2014-10-20 03:27:53
阅读次数:
319
//声明:ios系统不支持falsh,故而采用各平台支持的html5audio标签<script> //创建audio标签varaudio=document.createElement("audio"); //增加audio属性idaudio.id="audio"; //设置播放文件路径audio.src="sound/music.mp3"; //设置是否循环播放audio.loop="loop"; //获..
分类:
Web程序 时间:
2014-10-20 02:14:56
阅读次数:
272
JS中如何获取元素:1、通过ID名称来获取元素:document get element by id 'link'docuemnt.getElementById('link');2……事件:鼠标事件、键盘事件、系统事件、表单事件、自定义事件……onclickonmouseoveronmouseout...
分类:
Web程序 时间:
2014-10-20 00:48:24
阅读次数:
222
使用webview的stringByEvaluatingJavaScriptFromString的方法交互,直接提供实例。下载:http://download.csdn.net/detail/heyuan110/4420050附上document、location、body 属性方法 JS 对象do...
分类:
移动开发 时间:
2014-10-20 00:39:26
阅读次数:
298