js
tomato你个番茄
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
js日期格式化
[code="js"]Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, "d+" : this.getDate(), "h+" : this.getHours(), "m+" : this.getMinutes(), ...原创 2011-10-28 10:38:34 · 198 阅读 · 0 评论 -
js跳转问题解决方式
[code="js"] if (top.location != self.location) top.location=self.location; [/code]原创 2011-11-14 21:18:59 · 819 阅读 · 0 评论 -
js将long日期格式转换为标准日期格式
[code="js"] //扩展Date的format方法 Date.prototype.format = function (format) { var o = { "M+": this.getMonth() + 1, "d+": this.getDate(), "h+...原创 2011-11-23 17:05:45 · 220 阅读 · 0 评论 -
js 获取日期时间段
[code="js"]/** * DateUtil.js 日期工具包 时间:2011-02-12 注:1天=86400000毫秒 邮箱:jrunner@126.com */function DateUtil() { this.WeekDay;// 星期几 this.WeekDayStr; this.Day;// 当天 this.Year;// 当年 this.M...原创 2012-06-06 12:24:15 · 310 阅读 · 0 评论 -
js获取工程名
[code="java"]//获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp var curWwwPath=window.document.location.href; //获取主机地址之后的目录,如: uimcardprj/share/meun.jsp var pathName=window.d...原创 2012-07-13 13:50:19 · 189 阅读 · 0 评论 -
ajax数据丢失问题
[code="java"] imageData = imageData.replace(/%/g, "%25");imageData = imageData.replace(/\&/g, "%26");imageData = imageData.replace(/\+/g, "%2B");[/code]原创 2012-07-20 11:02:52 · 660 阅读 · 0 评论 -
js 声音提示
[code="java"]试听 //打击按钮发声function playonline(url){ var obj=document.getElementById("bsound") obj.src=url}[/code]原创 2012-08-01 16:54:27 · 501 阅读 · 0 评论
分享