转载自: http://blog.sina.com.cn/s/blog_6ae8b50d01011rri.html
下载:http://download.csdn.net/detail/heyuan110/4420050
附上document、location、body 属性方法 JS 对象
document:属性
document.title
document.bgColor
document.fgColor
document.linkColor
document.alinkColor
document.vlinkColor
document.URL
document.fileCreatedDate
document.fileModifiedDate
document.fileSize
document.cookie
document.charset
document:方法
document.write()
document_createElement_x_x(Tag)
document.getElementByIdx_x_x(ID)
document.getElementsByName(Name)
document.body.a(oTag)
body:子对象
document.body
document.body.bgColor
document.body.link
document.body.alink
document.body.vlink
document.body.text
document.body.innerText
document.body.innerHTML
document.body.topMargin
document.body.leftMargin
document.body.rightMargin
document.body.bottomMargin
document.body.background
document.body.a(oTag) //动态生成一个HTML对象
location:子对象
document.location.hash
document.location.host
document.location.hostname
document.location.href
document.location.pathname
document.location.port
document.location.protocol
document.location.search
常用对象事件:
documeny.location.reload()
document.location.reload(URL)
document.location.assign(URL)
document.location.replace(URL)
selection-选区子对象
document.selection
本文介绍如何使用WebView通过stringByEvaluatingJavaScriptFromString方法实现JavaScript交互,并提供了具体实例。此外还详细列举了document、location及body对象的相关属性和方法。

6302

被折叠的 条评论
为什么被折叠?



