var no=new Date().getTime(); console.log(no); Date.prototype.format = function(format) { var date = { "M+": this.getMonth() + 1, "d+": this.getDate(), "...
$.ajax({ type: "post", url: "{:u('cart/totalByCard')}?t="+Math.random(9999), data: {'address':address,'delivity':delivity,'payment':payment,$('#card_for...
function popNotice() { if (Notification.permission == "granted") { var notification = new Notification("Hi,你好:", { body: '可以加你个好友吗?', icon: 'http://www....
/*设置cookie*/ function setCookie(name, value, days){ if(days == null || days == ''){ days = 300; } var exp = new Date(); exp.setTime(exp.getTime() + days...
jQuery.extend({ handleError: function( s, xhr, status, e ) { // If a local callback was specified, fire it if ( s.error ) s.error( xhr, status, e ); //...
/*时间戳转换插件*/ layui.laytpl.toDateString = function(d, format){ if(!d){ return "" } var date = new Date(d || new Date()) ,ymd = [ this.digit(date.getFullYe...