上一页 1 ··· 84 85 86 87 88 89 90 91 92 ··· 133 下一页
摘要: "" 阅读全文
posted @ 2020-05-08 09:07 盘思动 阅读(161) 评论(0) 推荐(0)
摘要: ``` private function left_time_str($sale_time){ $sale_time = strtotime($sale_time); $left_time = $sale_time - time(); if($left_time 0) $str .= $day . '天'; if ($hour >... 阅读全文
posted @ 2020-04-29 18:40 盘思动 阅读(1118) 评论(0) 推荐(0)
摘要: ``` var tmp_arr_1 = new Array(); var tmp1 = {'type':1,'plan_num':200}; tmp_arr_1.push(tmp1); tmp_arr_1.push(tmp1); console.log(tmp_arr_1); tmp_arr_1[0]['type'] = ' '; console.log('--变化一个后--'); console 阅读全文
posted @ 2020-04-28 16:32 盘思动 阅读(2662) 评论(0) 推荐(0)
摘要: ``` js中字符串的替换在js中字符串全部替换可以用以下方法:两种区别:正则&常规str.replace("需要替换的字符串","新字符串") str.replace(/需要替换的字符串/g,"新字符串")比如:"yyyy-MM-dd-hh-mm-ss".replace("-","/")结果如下: "yyyy/MM-dd-hh-mm-ss""yyyy-MM-dd-hh-mm-ss".replac... 阅读全文
posted @ 2020-04-13 21:25 盘思动 阅读(14576) 评论(0) 推荐(0)
摘要: new Promise(function(resolve){ console.log('马上执行for循环'); for(var i = 0; i < 1000; i++){ resolve(); console.log(i); } }).then(function(){ console.log(' 阅读全文
posted @ 2020-04-09 22:27 盘思动 阅读(954) 评论(0) 推荐(0)
摘要: ``` 文字 使用第一种的方法e.target.dataset.action 会获取当前点击的元素的action,则获取图片上的action,图片上没有action便取的是undefined; 使用第二种的方法e.currentTarget.dataset.action 会获取有事件的那个元素,即view,所以获得“father” ``` 阅读全文
posted @ 2020-04-09 20:48 盘思动 阅读(5215) 评论(0) 推荐(0)
摘要: ``` 获取最后一个元素 end() 获取第一个元素 reset() 删除最后一个元素(出栈):array_pop() 返回元素值并删除 删除第一个元素:array_shift() 返回元素值并删除 相关的方法: end() - 将内部指针指向数组中的最后一个元素,并输出。 next() - 将内部指针指向数组中的下一个元素,并输出。 prev() - 将内部指针指向数组中的上一个元素,并输出。 阅读全文
posted @ 2020-03-19 09:00 盘思动 阅读(660) 评论(0) 推荐(0)
摘要: window.parent.location.reload(); history.go(-1);// 仅仅返回,没有再刷新的效果 阅读全文
posted @ 2020-03-12 14:33 盘思动 阅读(347) 评论(0) 推荐(0)
摘要: ``` art-templatehttp://aui.github.io/art-template/``` 阅读全文
posted @ 2020-03-12 14:21 盘思动 阅读(263) 评论(0) 推荐(0)
摘要: ``` $("#subForm").submit(function() { $.ajax({ url: "/api.php/Jd/sub", data: $("#subForm").serializeArray(), type: "POST", dataType: "json", success: function(data) { var errno = ... 阅读全文
posted @ 2020-03-11 22:16 盘思动 阅读(276) 评论(0) 推荐(0)
上一页 1 ··· 84 85 86 87 88 89 90 91 92 ··· 133 下一页