摘要: https://www.cnblogs.com/changpuyi/p/11160944.html 阅读全文
posted @ 2020-11-09 16:32 zhangPooo 阅读(289) 评论(0) 推荐(0)
摘要: 先上代码 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)
摘要: 插入图片后使用 this.editorCtx.format('align', 'center') 注:是在插入图片成功后(不是在插入图片的回调中设置,如果在这里使用的话会报错的,因为这里使用的对象是img标签,我们做的是要在img标签外的p标签) 比如: this.editorCtx.insertI 阅读全文
posted @ 2020-10-10 14:39 zhangPooo 阅读(1832) 评论(0) 推荐(0)
摘要: 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)
摘要: 参考文章 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)
摘要: 不多bb,直接亮代码贴图 SELECT * FROM `tab_name` WHERE 字段 REGEXP '\"35802\"' 正则匹配 我要查的是article_sum字段,使用上述sql语句如下 以及 阅读全文
posted @ 2020-09-08 11:45 zhangPooo 阅读(2040) 评论(0) 推荐(0)
摘要: 在 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)
摘要: if (!/windows phone|iphone|android/ig.test(window.navigator.userAgent)) { //pc }else{ //h5 } 阅读全文
posted @ 2020-08-04 19:11 zhangPooo 阅读(730) 评论(0) 推荐(0)
摘要: <?php $array = array('lastname','email','phone'); $comma_separated = implode(",",$array); //使用 ,连接 ?> 阅读全文
posted @ 2020-07-06 16:21 zhangPooo 阅读(422) 评论(0) 推荐(0)
摘要: 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)