会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zhangPooo
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2020年11月9日
FROM_UNIXTIME()时间戳转换函数
摘要: https://www.cnblogs.com/changpuyi/p/11160944.html
阅读全文
posted @ 2020-11-09 16:32 zhangPooo
阅读(289)
评论(0)
推荐(0)
2020年10月20日
移动端的文本框获取焦点时导致fixed或absolute定位的按钮被手机键盘顶上去的问题
摘要: 先上代码 var win_h = $(window).height();//关键代码 window.addEventListener('resize', function () { if($(window).height() < win_h){ $('.share-btn-box').hide();
阅读全文
posted @ 2020-10-20 15:55 zhangPooo
阅读(520)
评论(0)
推荐(0)
2020年10月10日
小程序富文本插入图片默认居中 uniapp editor
摘要: 插入图片后使用 this.editorCtx.format('align', 'center') 注:是在插入图片成功后(不是在插入图片的回调中设置,如果在这里使用的话会报错的,因为这里使用的对象是img标签,我们做的是要在img标签外的p标签) 比如: this.editorCtx.insertI
阅读全文
posted @ 2020-10-10 14:39 zhangPooo
阅读(1832)
评论(0)
推荐(0)
2020年9月26日
js 年月日转时间戳
摘要: dateToTimestamp(dateStr) { if (!dateStr) { return '' } let newDataStr = dateStr.replace(/\.|\-/g, '/') let date = new Date(newDataStr); let timestamp
阅读全文
posted @ 2020-09-26 17:11 zhangPooo
阅读(4775)
评论(0)
推荐(0)
2020年9月23日
PHP IP地址转城市 实际地址
摘要: 参考文章 https://www.cnblogs.com/f-rt/p/10848201.html (PHP正则获取html任意标签,根据具体需求更改代码即可) 我这里使用的是http://www.cip.cc/查询IP实际地址,暂时性的解决了我的问题( http://www.cip.cc/ 网站废
阅读全文
posted @ 2020-09-23 03:13 zhangPooo
阅读(476)
评论(0)
推荐(0)
2020年9月8日
mysql 查询json字符串中符合条件的值
摘要: 不多bb,直接亮代码贴图 SELECT * FROM `tab_name` WHERE 字段 REGEXP '\"35802\"' 正则匹配 我要查的是article_sum字段,使用上述sql语句如下 以及
阅读全文
posted @ 2020-09-08 11:45 zhangPooo
阅读(2040)
评论(0)
推荐(0)
2020年8月26日
phpstudy 导入sql到phpmyadmin中sql过大导致失败解决办法
摘要: 在 Windows 下使用 cmd 命令执行(或 Unix 或 Linux 控制台下)【Mysql的bin目录】\mysql –u用户名 –p密码 –D数据库<【sql脚本文件路径全名】,示例:C:\MySQL\bin\mysql –uroot –p123456 -Dtest<C:\test.sql
阅读全文
posted @ 2020-08-26 15:39 zhangPooo
阅读(372)
评论(0)
推荐(0)
2020年8月4日
js判断移动端PC端(正则表达式)
摘要: if (!/windows phone|iphone|android/ig.test(window.navigator.userAgent)) { //pc }else{ //h5 }
阅读全文
posted @ 2020-08-04 19:11 zhangPooo
阅读(730)
评论(0)
推荐(0)
2020年7月6日
implode 使用一个字符串将数组变成字符串 php (数组转字符串)
摘要: <?php $array = array('lastname','email','phone'); $comma_separated = implode(",",$array); //使用 ,连接 ?>
阅读全文
posted @ 2020-07-06 16:21 zhangPooo
阅读(422)
评论(0)
推荐(0)
2020年6月4日
微信小程序检查sessionkey
摘要: 1 wx.checkSession({ 2 success: function(res){ 3 console.log(res); 4 }, 5 fail: function(res){ 6 console.log("需要重新登录"); 7 } 8 })
阅读全文
posted @ 2020-06-04 17:21 zhangPooo
阅读(833)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告