export function getGuid() { function S4() { return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1) } return (S4() + S4() + '-' + S4() + '-' + S4() + '-' + S4() + '-' + S4() + S4() + S4()) } export function getTimeStamp() { var tmp = Date.parse(new Date()).toString() tmp = tmp.substr(0, 10) return tmp }