码迷,mamicode.com
首页 >  
搜索关键字:document    ( 20024个结果
jQuery.stickUp插件重构
stickUp插件用于实现固定菜单栏效果,原理很简单,说白了就是监听document的scroll事件,滚动到特定值时,将特定元素的position设置为fixed,核心代码如下: 1 $(document).on('scroll', function() { 2 ...
分类:Web程序   时间:2014-06-19 08:39:07    阅读次数:273
日期的常规运用
js 将字符串转换为Date类型,并与当前时间比较 function checkForm(){ var reserveTm = document.getElementById("reserveTm").value; var myDate= new Date(Date.parse(reserveTm....
分类:其他好文   时间:2014-06-19 00:07:28    阅读次数:326
企业搜索引擎开发之连接器connector(三十)
连接器里面采用的什么样的数据结构,我们先从Document迭代器开始入手,具体的Document迭代器类都实现了DocumentList接口,该接口定义了两个方法public interface DocumentList { public Document nextDocument() throw....
分类:其他好文   时间:2014-06-18 23:45:48    阅读次数:345
css 倒计时 svg
new document div{position:absolute;width:200px;height:200px;left:0;top:0;right:0;bottom:0;margin:auto;border-radius:50%;backgroun...
分类:Web程序   时间:2014-06-18 21:43:53    阅读次数:358
JavsScript中的Document对象
Document对象的属性alinkColor,linkColor,vlinkColor:这些属性描述了超链接的颜色。linkColor指未访问过的链接的正常颜色,vlinkColor指访问过的链接的颜色,alinkColor指被激活的链接的颜色。这些属性对应于文档中body标记的属性:alink,...
分类:其他好文   时间:2014-06-16 23:50:32    阅读次数:350
cocos2d-x 3.0 rapidjson 的写入操作应该注意的细节
//获取一个可写入的全路径 auto path =FileUtils::getInstance()->getWritablePath(); log("%s", path.c_str()); //在这个路径下添加一个json文件 path.append("myhero.json"); rapidjson::Document document; document.SetObject()...
分类:Windows程序   时间:2014-06-16 23:22:47    阅读次数:557
javascript 怎么操纵OGNL标签
吧ONGL标签放到html标签中,来操作html的标签就可以了 例子代码: html javascript var categoryid = document.getElementById("categoryid").innerHTML;...
分类:编程语言   时间:2014-06-16 21:03:15    阅读次数:329
javascript 跨域解决方案
1用jsonp$.getJSON("http://www.jinanwuliangye.com/document!searchJSONResult.action?name1="+value1+"&jsoncallback=?",function(json){if(json.属性名==值){//执行代码}});$.getJSON("http://www.tongxinglong.com/document!searchJSONResult.action?name1="+value1+"&..
分类:编程语言   时间:2014-06-16 17:37:49    阅读次数:256
《Javascript权威指南》学习笔记之十九--HTML5 DOM新标准---处理文档元信息和管理交互能力
document.queryCommandEnabled(commandID):确定命令是否已经激活。 3、document.queryCommandIndeterm(commandID):确定命令是否是不确定的。 4、document.queryCommandState(commandID):确定命令的状态 5、document.queryCommandSupported(commandID):确定命令是否被支持,返回true或false 6...
分类:编程语言   时间:2014-06-16 14:24:46    阅读次数:163
JavaScript 表单编程
JavaScript 表单编程目标:主要是访问用户输入的表单数据,校验用户输入的正确性。获取表单的引用: //方法一:将表单的ID作为方法的参数 var f1 = document.getElementById("f1"); //方法二:表单集合,得到第一个表单var f2 = document.....
分类:编程语言   时间:2014-06-15 13:41:09    阅读次数:419
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!