会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
盘思动
三思而后折腾!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
84
85
86
87
88
89
90
91
92
···
133
下一页
2020年5月8日
jq中反向全选的效果
摘要: ""
阅读全文
posted @ 2020-05-08 09:07 盘思动
阅读(161)
评论(0)
推荐(0)
2020年4月29日
php 获取剩余时间, 日,时,分展示...
摘要: ``` 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)
2020年4月28日
为什么我只改了JS数组中的一个对象的元素的值,其他对象的元素值都跟着变了
摘要: ``` 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)
2020年4月13日
js中字符串的替换
摘要: ``` 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)
2020年4月9日
js 顺序执行代码
摘要: 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.currentTarget.dataset 和 e.target.dataset 的区别
摘要: ``` 文字 使用第一种的方法e.target.dataset.action 会获取当前点击的元素的action,则获取图片上的action,图片上没有action便取的是undefined; 使用第二种的方法e.currentTarget.dataset.action 会获取有事件的那个元素,即view,所以获得“father” ```
阅读全文
posted @ 2020-04-09 20:48 盘思动
阅读(5215)
评论(0)
推荐(0)
2020年3月19日
数组第一个,最后一个元素操作
摘要: ``` 获取最后一个元素 end() 获取第一个元素 reset() 删除最后一个元素(出栈):array_pop() 返回元素值并删除 删除第一个元素:array_shift() 返回元素值并删除 相关的方法: end() - 将内部指针指向数组中的最后一个元素,并输出。 next() - 将内部指针指向数组中的下一个元素,并输出。 prev() - 将内部指针指向数组中的上一个元素,并输出。
阅读全文
posted @ 2020-03-19 09:00 盘思动
阅读(660)
评论(0)
推荐(0)
2020年3月12日
js 返回上一个页面
摘要: window.parent.location.reload(); history.go(-1);// 仅仅返回,没有再刷新的效果
阅读全文
posted @ 2020-03-12 14:33 盘思动
阅读(347)
评论(0)
推荐(0)
ejs 替代插件,执行更快
摘要: ``` art-templatehttp://aui.github.io/art-template/```
阅读全文
posted @ 2020-03-12 14:21 盘思动
阅读(263)
评论(0)
推荐(0)
2020年3月11日
serializeArray 提交表单
摘要: ``` $("#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
下一页
公告