热门 时间戳互相转换工具

时间:2018-2-27   作者:lininn   分类:   热度:2284°    
时间:2018-2-27   分类:    热度:2284  
var no=new Date().getTime(); console.log(no); Date.prototype.format = function(format) { var date = { "M+": this.getMonth() + 1, "d+": this.getDate(), "h+": this.getHours(), "m+": this.getMinutes(), "s+": this.ge...

阅读全文>>

热门 表单序列化添加额外数据

时间:2018-2-12   作者:lininn   分类:   热度:2208°    
时间:2018-2-12   分类:    热度:2208  
$.ajax({ type: "post", url: "{:u('cart/totalByCard')}?t="+Math.random(9999), data: {'address':address,'delivity':delivity,'payment':payment,$('#card_form').serialize()}, dataType: "json", success: function(json) { $('#cost_item').html('¥'+parseFloat(json....

阅读全文>>

热门 用js获取语音并处理

时间:2018-1-26   作者:lininn   分类:   热度:4664°    
时间:2018-1-26   分类:    热度:4664  
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head> <body> <script type="text/javascript" src="lu.js"></script> <div> <audio contr...

阅读全文>>

热门 Notification通知

时间:2018-1-19   作者:lininn   分类:   热度:2355°    
时间:2018-1-19   分类:    热度:2355  
   function popNotice() {         if (Notification.permission == "granted") {             var notification = new Notification("Hi,你好:", {                 body: '可以加你个好友吗?',       &n...

阅读全文>>

热门 js操作cookie cookie.js

时间:2018-1-15   作者:lininn   分类:   热度:2465°    
时间:2018-1-15   分类:    热度:2465  
/*设置cookie*/ function setCookie(name, value, days){ if(days == null || days == ''){ days = 300; } var exp  = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + "="+ escape (value) + "; path=/;expires=" + exp.toGMTString(); } /*获取cookie*/ function getCoo...

阅读全文>>

返回顶部    首页    手机版本    后花园   会员注册   
版权所有:覆手为雨    站长: lininn