随笔分类 -  JavaScript

在 UIWebView中搜索并高亮度显示文本
摘要:Search and highlight text in UIWebViewSeveral iPhone Apps (like my “iCab Mobile” or “NewsTap” Apps) provide a search feature which allows to search for text in the content that is currently displayed within a UIWebView. The found occurrences of the searched text are highlighted with a yellow backgro 阅读全文

posted @ 2011-06-24 14:27 禚来强 阅读(1178) 评论(0) 推荐(0)

UIWebView 如何 怎么 运行 JavaScript Js
摘要:WebKit on the iPhone (Part 1)If you develop an application which should display a web page or HTML file,you can use the WebKit framework, which is part of the MacOS and also of theiPhone OS.But while on the Mac, the WebKit framework provides almost 160 public headerfiles which define even more publi 阅读全文

posted @ 2011-06-24 14:17 禚来强 阅读(2186) 评论(1) 推荐(1)

document.getElementById与getElementByName的区别
摘要:1:id 就像身分证号,是唯一的, name 就像姓名一样可以同名 2:一个元素定义了 id ,引用该元素时直接用 id 属性,而 name 通常用在 form 中,且必须由 document.form.*** 而来,也就是说, name 属性定义的元素在脚本中是 document 对象的子对象。 3:name 用于 form 内元素,提交需要 id 用于 form 外元素好用因为 DOM 能直接取得单一元素 document.getElementById( "id_Number ") 得到的是单个元素 document.getElementsByName( "n 阅读全文

posted @ 2011-06-24 11:52 禚来强 阅读(65399) 评论(0) 推荐(1)

导航