- 博客(8)
- 资源 (2)
- 收藏
- 关注
javascript 写着玩!
;(function() { return window.Query = window.$ = (function() { try { var _this = {}; /** * 循环数组或者名值对象 */ _this.each = function(obj, callback, args) { if (_this.isObj(obj...
2012-07-31 14:25:58 64
javascript 学习笔记
《一》。利用arguments对象可以模拟函数重载例:function addition(){ if(arguments.length == 1){ }else if (arguments.length == 2) { }}调用:addition (args1),addition(args1,args2);《二》。javascript继...
2012-07-24 10:20:21 90
Ajax FireFox IE 乱码不兼容
解决方案: url中传值,设置Firefox的参数传递编码:url = "tooltipDisplayAction.te?key=" + encodeURIComponent(key); 即是encodeURIComponent 在Struts的action中添加接受数据的参数设置:request.setCharacterEncoding("UTF-8"); response.se...
2012-07-23 10:47:11 68
ajax post 提交传值
要加入httpRequest.setRequestHeader("CONTENT-TYPE", "application/x-www-form-urlencoded");这句话
2012-07-23 10:10:20 126
javascript bug --------- 如果页面input有name属性的话则className取不到input 的classname...
例如:<input type = "text" name="username" class = "user"/> 则document.getElementsByTagName("input")[0].className 为undefined;
2012-07-20 16:13:31 139
原创 清除桌面图标命令
cmd /k reg delete "HKEY_CLASSES_ROOT\lnkfile" /v IsShortcut /f & taskkill /f /im explorer.exe & start explorer.exe
2012-07-12 16:33:27 252
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人