This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<!-- Encoding --> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></meta> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getDate : function(model,time) { | |
var time = time || new Date(); | |
var z ={y:time.getFullYear(), | |
M:time.getMonth()+1, | |
d:time.getDate(), | |
h:time.getHours(), | |
m:time.getMinutes(), | |
s:time.getSeconds() | |
}; | |
return model.replace(/(y+|M+|d+|h+|m+|s+)/g,function(v) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function copy(a, b, isWrite, filter){ | |
for (var prop in b) | |
if (isWrite || typeof a[prop] === 'undefined' || a[prop] === null) | |
a[prop] = filter ? filter(b[prop]) : b[prop]; | |
return a; | |
} |