Edit D:\xinhaisoft\crisis_new\Scripts\template.helper.js
/* * ?????????????? * @param date ??????????? * @param format ????????????????? * ?????????????? * y:??, * M:????????(1-12), * d:????????(1-31), * h:???(0-23), * m:??(0-59), * s:??(0-59), * S:???(0-999), * q:???(1-4) * @return String * @author yanis.wang * @see http://yaniswang.com/frontend/2013/02/16/dateformat-performance/ * ?????{time | DatetimeFormat:'yyyy??M??d?? hh:mm:ss'}} */ template.helper('DatetimeFormat', function (date, format) { if (typeof date === "string") { var mts = date.match(/(\/Date\((\d+)\)\/)/); if (mts && mts.length >= 3) { date = parseInt(mts[2]); } } date = new Date(date); if (!date || date.toUTCString() == "Invalid Date") { return ""; } var map = { "M": date.getMonth() + 1, "d": date.getDate(), "h": date.getHours(), "m": date.getMinutes(), "s": date.getSeconds(), "q": Math.floor((date.getMonth() + 3) / 3), "S": date.getMilliseconds() }; format = format.replace(/([yMdhmsqS])+/g, function (all, t) { var v = map[t]; if (v !== undefined) { if (all.length > 1) { v = '0' + v; v = v.substr(v.length - 2); } return v; } else if (t === 'y') { return (date.getFullYear() + '').substr(4 - all.length); } return all; }); return format; }); //????????????????????????????????rue???????????alse template.helper('IsLessthan',function(n1,n2){ return n1<n2; }); //??????? /* 1. $('#t').before(template('t',json)).remove(); 2????????$index?????????1????????????+1 3??????JSON????????$value??????? */
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de