javascript
jackchenmy
hello jackchenmy
展开
-
js 事件code 对应表
在网上找的一份有关键盘的各个键位的code 代码,见附件 // 将下面的路径替换位你js文件所在路径。 $js_path = "http://www.yourPath.com/js/"; function js_include($script){ var script = document.createElement('script'); script.src = $...原创 2010-08-31 13:00:59 · 260 阅读 · 0 评论 -
javascript replaceAll
string:字符串表达式包含要替代的子字符串。 reallyDo:被搜索的子字符串。 replaceWith:用于替换的子字符串。 String.prototype.replaceAll = function(reallyDo, replaceWith, ignoreCase) { if (!RegExp.prototype.isPrototypeOf(reallyDo)...原创 2011-05-12 14:09:34 · 71 阅读 · 0 评论 -
ie ff
ie和火狐兼容问题 1. document.form.item 问题 (1)现有问题: 现有代码中存在许多 document.formName.item("itemName") 这样的语句,不能在Firefox(火狐)下运行 (2)解决方法: 改用 document.formName.elements["elementName"] 2. 集合类对象问...原创 2011-05-25 22:18:31 · 124 阅读 · 0 评论 -
表头不动,,的div
带滚动条的表格 - scroll table table { border-collapse:collapse; border:0; width:auto; table-layout:fixed; } .dd { height:150px; /* set height here for ie */ width:600...原创 2011-05-28 09:46:56 · 114 阅读 · 0 评论 -
jquery printer
:$(element).printArea(option). 参数设置: 1.mode:模式,当点击打印按钮时触发模式,默认为iframe,当设置为popup则会新开一个窗口页面打印。 2.popTitle:设置新开窗口的标题,默认为空。 3.popClose:完成打印后是否关闭窗口,默认为false。...原创 2013-07-30 09:02:37 · 109 阅读 · 0 评论