js
zhonghua2412
这个作者很懒,什么都没留下…
展开
-
js 日期格式化
写道 var dt = Date.fromString($("#txtDate").val()); var str = dt.asString("ddd dd/mmm/yy"); javascript 如何对日期进行格式化? 以“ddd dd/mmm/yy” 格式输出 "12/Jan/2010"。 date.js 写道 /* * Date prototyp...2010-04-06 18:04:46 · 98 阅读 · 0 评论 -
js 分割字符串
后台返回result 写道 <cfset result = SerializeJSON(ssafilename&"|~|"&dateformat(dateNow,"#application.date_format#"), false)> 前台接值 写道 var rsp = response.split("|~|"); if ($.trim(rsp[0...2010-04-07 18:13:08 · 104 阅读 · 0 评论 -
showdialog模态窗口中的POST方法
showdialog 在IE8中的post方法是打开一个新窗口,与火狐不同。所以如果在模态窗口里提交给后台的一些操作, 会造成不能控制关闭窗口的功能。解决办法是在<head></head>里加入<base target="_self" />.这样IE8里就好用了。 见如下代码: ssa_list_content.cfm 写道 <script ...2010-04-09 18:07:11 · 932 阅读 · 0 评论 -
juery unbind方法
jquery 写道 $(e).find("#imgHide").unbind('click'); $(e).find("#imgHide").click(function(){ window.open(fileName); }); 每次先清空click方法,再增加click方法。 ...2010-04-09 18:10:51 · 104 阅读 · 0 评论 -
给图片加入onclick方法
写道 <img src="../images/Picture21.png" id="imgSSAFile" name="imgSSAFile" onclick="window.open('../common/uploads/#SSA_FL_NM#');" style="cursor:pointer;" />2010-04-09 18:12:46 · 2298 阅读 · 0 评论 -
use maxlength and required of jquery
I found that maxlength and requeried of jquery cannot use together. so we need to add a new method to validate a special field which need length limitation and also a field which is requried. code is ...2010-04-26 10:23:29 · 147 阅读 · 0 评论 -
jquery mobile demo
a simple message pad using jquery mobile.2011-03-11 16:07:04 · 117 阅读 · 0 评论