日本成人电影免费网,日本黄色a级网站,美女欧美裸体免费视频,国产a片网址免费看http://www.efa168.com/龍巖小程序開發(fā),龍巖分銷系統(tǒng)- js在當(dāng)前日期添加天、周、月、年http://www.efa168.com/post/2709.html<p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">//創(chuàng)建date</span></p><p><span style="text-wrap-mode: nowrap;">var nowDate = new Date();</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">//添加天數(shù)</span></p><p><span style="text-wrap-mode: nowrap;">nowDate.setDate(nowDate.getDate() + 1);</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">//添加周 添加周用添加天的方式,來添加七天,即為一周</span></p><p><span style="text-wrap-mode: nowrap;">nowDate.setDate(nowDate.getDate() + 7);</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">//添加月數(shù)</span></p><p><span style="text-wrap-mode: nowrap;">nowDate.setMonth(nowDate.getMonth() + 1);</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">//添加年數(shù)</span></p><p><span style="text-wrap-mode: nowrap;">nowDate.setYear(nowDate.getFullYear() + 1);</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">打印格式為年月日時(shí)分秒</span></p><p><span style="text-wrap-mode: nowrap;">const year = nowDate.getFullYear();</span></p><p><span style="text-wrap-mode: nowrap;">const month = (nowDate.getMonth() + 1).toString().padStart(2, '0');</span></p><p><span style="text-wrap-mode: nowrap;">const day = nowDate.getDate().toString().padStart(2, '0');</span></p><p><span style="text-wrap-mode: nowrap;">const hours = nowDate.getHours().toString().padStart(2, '0');</span></p><p><span style="text-wrap-mode: nowrap;">const minutes = nowDate.getMinutes().toString().padStart(2, '0');</span></p><p><span style="text-wrap-mode: nowrap;">const seconds = nowDate.getSeconds().toString().padStart(2, '0');</span></p><p><span style="text-wrap-mode: nowrap;">console.log(`${year}-${month}-${day} ${hours}:${minutes}:${seconds}`);</span></p><p><br/></p>Wed, 11 Dec 2024 17:16:15 +0800
- centos 禁用php5.6版本eval函數(shù)http://www.efa168.com/post/2708.html<p><span style="text-wrap-mode: nowrap;">不支持PHP8,官方只支持PHP7以下</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">服務(wù)器只裝了一個PHP5.6版本,一定要安裝對應(yīng)的suhosin-0.9.38版本,</span></p><p><span style="text-wrap-mode: nowrap;">測試成功是 php5.x: wget https://download.suhosin.org/suhosin-0.9.38.tar.gz</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">一、安裝Suhosin</span></p><p><span style="text-wrap-mode: nowrap;">1、不是寶塔環(huán)境</span></p><p><span style="text-wrap-mode: nowrap;">cd /usr/local/src</span></p><p><span style="text-wrap-mode: nowrap;">wget https://download.suhosin.org/suhosin-0.9.38.tar.gz</span></p><p><span style="text-wrap-mode: nowrap;">tar zxvf suhosin-0.9.38.tar.gz</span></p><p><span style="text-wrap-mode: nowrap;">cd suhosin-0.9.38</span></p><p><span style="text-wrap-mode: nowrap;">./configure --with-php-config=/usr/local/php/bin/php-config</span></p><p><span style="text-wrap-mode: nowrap;">make </span></p><p><span style="text-wrap-mode: nowrap;">make install</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">2、寶塔環(huán)境安裝</span></p><p><span style="text-wrap-mode: nowrap;">cd /usr/local/src</span></p><p><span style="text-wrap-mode: nowrap;">wget https://download.suhosin.org/suhosin-0.9.38.tar.gz</span></p><p><span style="text-wrap-mode: nowrap;">tar zxvf suhosin-0.9.38.tar.gz</span></p><p><span style="text-wrap-mode: nowrap;">cd suhosin-0.9.38</span></p><p><span style="text-wrap-mode: nowrap;">./configure --with-php-config=/www/server/php/56/bin/php-config</span></p><p><span style="text-wrap-mode: nowrap;">make</span></p><p><span style="text-wrap-mode: nowrap;">make install</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">安裝完成之后,出現(xiàn)下面的界面,說明安裝成功。</span></p><p><span style="text-wrap-mode: nowrap;">/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/ #suhosin模塊路徑</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">二、在php.ini下加入suhosin.so即可</span></p><p><span style="text-wrap-mode: nowrap;">extension=suhosin.so</span></p><p><span style="text-wrap-mode: nowrap;">suhosin.executor.disable_eval = on</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">三、測試確定是禁止,運(yùn)行下面代碼</span></p><p><span style="text-wrap-mode: nowrap;"><?php</span></p><p><span style="text-wrap-mode: nowrap;">eval("echo'hello world';");</span></p><p><span style="text-wrap-mode: nowrap;">?></span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">如果能輸出:hello world,說明沒有禁用,</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">如果什么都看不到或報(bào)錯,說明正確,已經(jīng)禁用</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">如果還是看的到,重啟下服務(wù)器。</span></p><p><br/></p>Sat, 02 Nov 2024 10:16:52 +0800
- 返回json格式報(bào)錯:Inf and NaN cannot be JSON encodedhttp://www.efa168.com/post/2707.html<p>$res = unserialize(str_replace(array('NAN;','INF;'),'0;',serialize($res)));<br/></p><p><br/></p>Wed, 16 Oct 2024 21:43:37 +0800
- tp5.1 時(shí)間戳運(yùn)算后比較http://www.efa168.com/post/2706.html<p> db( 'goods' )->where( array ([ 'status','<',4 ] ))->whereRaw("update_time+" . 24 * 60 * 60 . '<' . time () )->select;</p>Mon, 05 Aug 2024 16:08:59 +0800
- php獲取本周一、周日http://www.efa168.com/post/2705.html<p>$week = date ( 'w' ) == 0 ? 7 : date ( 'w' );</p><p>$monday = strtotime ( 'today -' . ($week - 1) . 'day' );</p><p>$sunday = strtotime ( 'today +' . (8 - $week) . 'day -1second' );</p><p> </p><p>$monday_date = date("Y-m-d", $monday); // 本周一的日期(年-月-日)</p><p>$sunday_date = date("Y-m-d", $sunday); // 本周日的日期(年-月-日)</p><p> </p><p>echo "本周一:".$monday_date."<br>";</p><p>echo "本周日:".$sunday_date;</p><p><br/></p>Mon, 24 Jun 2024 09:15:03 +0800
- 小程序昨天日期(年月日)函數(shù)http://www.efa168.com/post/2704.html<p>function getYesterdayDate() {</p><p> const today = new Date();</p><p> const yesterday = new Date(today.getTime() - (24 * 60 * 60 * 1000));</p><p> return yesterday.toISOString().split('T')[0];</p><p>}</p><p> </p><p>console.log(getYesterdayDate()); // 輸出格式為YYYY-MM-DD</p><p><br/></p>Mon, 03 Jun 2024 16:35:12 +0800
- 小程序通過掃碼進(jìn)入http://www.efa168.com/post/2703.html<p>onLoad((options)=>{</p><p> if(options.scene){</p><p><span style="white-space-collapse: preserve;"></span> const scene = decodeURIComponent(options.scene)</p><p><span style="white-space-collapse: preserve;"></span> console.log(scene.id);</p><p> }</p><p>})</p><p><br/></p>Mon, 01 Apr 2024 22:40:59 +0800
- layui input獲取值的方法http://www.efa168.com/post/2702.html<p><span style="text-wrap: nowrap;"><input type="text" name="goods_sn" value="" placeholder="填寫貨品編號" class="layui-input"></span></p><p><span style="text-wrap: nowrap;"><br/></span></p><p><span style="text-wrap: nowrap;"><script type="text/javascript"> </span></p><p><span style="text-wrap: nowrap;">$(document).ready(function(){</span></p><p><span style="text-wrap: nowrap;"> layui.use('form', function() {</span></p><p><span style="text-wrap: nowrap;"> var form = layui.form; </span></p><p><span style="text-wrap: nowrap;"> form.render();</span></p><p><span style="text-wrap: nowrap;"> $("input[name='goods_sn']").on("blur",function(res){</span></p><p><span style="text-wrap: nowrap;"> console.log(res.delegateTarget.value);</span></p><p><span style="text-wrap: nowrap;"> }); </span></p><p><span style="text-wrap: nowrap;"> });</span></p><p><span style="text-wrap: nowrap;">})</span></p><p><span style="text-wrap: nowrap;"></script></span></p><p><br/></p>Fri, 26 Jan 2024 10:17:11 +0800
- tp5框架中的Db::name 和 dB::table 以及 db('') 的區(qū)別http://www.efa168.com/post/2701.html<p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin-top: 0px; margin-bottom: 0px; line-height: 2; padding: 0px; color: rgb(82, 82, 82); font-family: "Helvetica Neue", NotoSansHans-Regular, AvenirNext-Regular, arial, "Hiragino Sans GB", "Microsoft Yahei", "WenQuanYi Micro Hei", serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);">Db::name()</p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin-top: 0px; margin-bottom: 0px; line-height: 2; padding: 0px; color: rgb(82, 82, 82); font-family: "Helvetica Neue", NotoSansHans-Regular, AvenirNext-Regular, arial, "Hiragino Sans GB", "Microsoft Yahei", "WenQuanYi Micro Hei", serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);">如果數(shù)據(jù)庫中的表統(tǒng)一了表前綴,在application/database.php中的也寫明prefix => '前綴_' 就可以使用</p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin-top: 0px; margin-bottom: 0px; line-height: 2; padding: 0px; color: rgb(82, 82, 82); font-family: "Helvetica Neue", NotoSansHans-Regular, AvenirNext-Regular, arial, "Hiragino Sans GB", "Microsoft Yahei", "WenQuanYi Micro Hei", serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);">Db::name('user')->where(['id'=>1])->select();</p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin-top: 0px; margin-bottom: 0px; line-height: 2; padding: 0px; color: rgb(82, 82, 82); font-family: "Helvetica Neue", NotoSansHans-Regular, AvenirNext-Regular, arial, "Hiragino Sans GB", "Microsoft Yahei", "WenQuanYi Micro Hei", serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);">//數(shù)據(jù)庫中的表名為fa_user</p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin-top: 0px; margin-bottom: 0px; line-height: 2; padding: 0px; color: rgb(82, 82, 82); font-family: "Helvetica Neue", NotoSansHans-Regular, AvenirNext-Regular, arial, "Hiragino Sans GB", "Microsoft Yahei", "WenQuanYi Micro Hei", serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);"><br/></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin-top: 0px; margin-bottom: 0px; line-height: 2; padding: 0px; color: rgb(82, 82, 82); font-family: "Helvetica Neue", NotoSansHans-Regular, AvenirNext-Regular, arial, "Hiragino Sans GB", "Microsoft Yahei", "WenQuanYi Micro Hei", serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);">Db::table()使用這個必須<span style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; font-weight: bolder; color: rgb(255, 0, 0);">指定完整的表名</span></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin-top: 0px; margin-bottom: 0px; line-height: 2; padding: 0px; color: rgb(82, 82, 82); font-family: "Helvetica Neue", NotoSansHans-Regular, AvenirNext-Regular, arial, "Hiragino Sans GB", "Microsoft Yahei", "WenQuanYi Micro Hei", serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);">Db::tale('fa_user')->where(['id'=>1])->select();</p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin-top: 0px; margin-bottom: 0px; line-height: 2; padding: 0px; color: rgb(82, 82, 82); font-family: "Helvetica Neue", NotoSansHans-Regular, AvenirNext-Regular, arial, "Hiragino Sans GB", "Microsoft Yahei", "WenQuanYi Micro Hei", serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);">//數(shù)據(jù)庫中的表名為fa_user</p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin-top: 0px; margin-bottom: 0px; line-height: 2; padding: 0px; color: rgb(82, 82, 82); font-family: "Helvetica Neue", NotoSansHans-Regular, AvenirNext-Regular, arial, "Hiragino Sans GB", "Microsoft Yahei", "WenQuanYi Micro Hei", serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);"><br/></p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin-top: 0px; margin-bottom: 0px; line-height: 2; padding: 0px; color: rgb(82, 82, 82); font-family: "Helvetica Neue", NotoSansHans-Regular, AvenirNext-Regular, arial, "Hiragino Sans GB", "Microsoft Yahei", "WenQuanYi Micro Hei", serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);">db('')是助手函數(shù),注意此助手函數(shù),每次都會重新連接mysql?。∷赃@個助手函數(shù)<strong><span style="color: rgb(255, 0, 0);">少使用</span></strong>。</p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin-top: 0px; margin-bottom: 0px; line-height: 2; padding: 0px; color: rgb(82, 82, 82); font-family: "Helvetica Neue", NotoSansHans-Regular, AvenirNext-Regular, arial, "Hiragino Sans GB", "Microsoft Yahei", "WenQuanYi Micro Hei", serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);">db('user')->where(['id'=>1])->select();</p><p style="box-sizing: inherit; -webkit-tap-highlight-color: transparent; text-size-adjust: none; -webkit-font-smoothing: antialiased; margin-top: 0px; margin-bottom: 0px; line-height: 2; padding: 0px; color: rgb(82, 82, 82); font-family: "Helvetica Neue", NotoSansHans-Regular, AvenirNext-Regular, arial, "Hiragino Sans GB", "Microsoft Yahei", "WenQuanYi Micro Hei", serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);">//數(shù)據(jù)庫中的表名為fa_user</p><p><br/></p>Thu, 16 Nov 2023 12:28:31 +0800
- uniapp富文本圖片預(yù)覽http://www.efa168.com/post/2700.html<p><rich-text :data-nodes="about" :nodes="about" @click.stop="<span style="text-wrap: wrap;"><span style="text-wrap: wrap;">showPreview</span></span>"<span style="white-space-collapse: preserve;"> </span>style="line-height: 60rpx;"></rich-text></p><p><br/></p><p>showPreview(e) {</p><p><span style="white-space-collapse: preserve;"></span>let conimg = e.target.dataset.nodes;</p><p><span style="white-space-collapse: preserve;"></span>let imgs = conimg.match(/<img[^>]+>/g); //選擇節(jié)點(diǎn)中的img</p><p><span style="white-space-collapse: preserve;"></span>let imgList = [];</p><p><span style="white-space-collapse: preserve;"></span>//遍歷img標(biāo)簽的src里面的內(nèi)容放在定義的數(shù)組imgList中</p><p><span style="white-space-collapse: preserve;"></span>for (var j = 0; j < imgs.length; j++) {</p><p><span style="white-space-collapse: preserve;"></span>imgs[j].replace(/<img[^>]*src=['"]([^'"]+)[^>]*>/gi, function(match, capture) {</p><p><span style="white-space-collapse: preserve;"></span>imgList.push(capture)</p><p><span style="white-space-collapse: preserve;"></span>})</p><p><span style="white-space-collapse: preserve;"></span>}</p><p><span style="white-space-collapse: preserve;"></span>//最后一步就是所有圖片放在預(yù)覽的方法previewImage中就可以了</p><p><span style="white-space-collapse: preserve;"></span>uni.previewImage({</p><p><span style="white-space-collapse: preserve;"></span>current: imgList,</p><p><span style="white-space-collapse: preserve;"></span>urls: imgList,</p><p><span style="white-space-collapse: preserve;"></span>})</p><p>},</p><p><br/></p>Wed, 08 Nov 2023 15:56:10 +0800