码迷,mamicode.com
首页 >  
搜索关键字:document    ( 20024个结果
百度推送代码
<script>(function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol 'https') { b ...
分类:其他好文   时间:2016-05-25 20:28:55    阅读次数:257
js手机站跳转
var yunzhuanhua_pc_domain = "http://www.域名.com#yht"; //PC站网址var yunzhuanhua_wap_domain = "http://m.域名.com#yht"; //手机站网址document.writeln("<frameset col ...
分类:移动开发   时间:2016-05-25 20:20:29    阅读次数:245
在IFrame中查找IFRAME中的元素的方式
下面是内部iframe找外部mainFrame的情况 var websiteSearchButton = window.parent.parent.document.getElementById('mainFrame') .contentWindow.document.getElementById( ...
分类:其他好文   时间:2016-05-25 18:23:30    阅读次数:139
JavaScript---手机端--页面自适应
在公司新学了一种页面自适应的方式: 仔细一看,一堆东西都不明白,因此做了一些搜查,现在罗列在下方: 1.document.documentElement(引用:http://www.cnblogs.com/scy251147/archive/2011/04/10/2011420.html) docu ...
分类:移动开发   时间:2016-05-25 16:57:19    阅读次数:399
HTML-教案-Window.document对象
1、Window.document对象 一、找到元素: docunment.getElementById("id");根据id找,最多找一个; var a =docunment.getElementById("id");将找到的元素放在变量中; docunment.getElementsByName ...
分类:Windows程序   时间:2016-05-25 16:36:33    阅读次数:254
jsunit测试
var script = document.createElement('script'); script.src = 'http://static.pay.baidu.com/resource/baichuan/ns.js'; document.body.appendChild(script); ...
分类:Web程序   时间:2016-05-25 15:14:14    阅读次数:193
正则表达式获取URL参数
使用到的正则表达式: [^\?&]?参数名=[^&]+ 使用方法: 例如地址:http://localhost/URLParas/Test.aspx?name=mo&帅不帅=太帅了 alert(document.location.getURLPara("帅不帅")); ...
分类:Web程序   时间:2016-05-25 15:10:55    阅读次数:251
javascript中document.appendChild和document.body.appendChild的问题
在IE7中 var conentDiv = document.createElement("div"); document.body.appendChild(conentDiv); document.appendChild(conentDiv); 都不会报错,但是在IE11中 document.ap ...
分类:移动开发   时间:2016-05-25 14:59:56    阅读次数:763
网页地址添加到收藏栏
function addFavorite() { var url = window.location; var title = document.title; var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf("360se") > ...
分类:Web程序   时间:2016-05-25 13:10:46    阅读次数:167
《锋利的jQuery》笔记-jQuery部分
//DOM对象和jQuery对象 DOM:Document Object Model:文档对象模型     DOM对象表示: var variable;     可以通过JavaScript中的getElementById 或者getElementsByTagName来获取元素节点。     DOM对象可以使用js中的方法。eg:  var ObjHtml=document.getElem...
分类:Web程序   时间:2016-05-25 11:20:49    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!