亚洲欧洲自拍拍偷10p,一级a性色生活片毛片,久久久久98黄片http://m.knownsfenmatter.com/龍巖小程序開發(fā),龍巖分銷系統(tǒng)js在當前日期添加天、周、月、年http://m.knownsfenmatter.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;">打印格式為年月日時分秒</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, &#39;0&#39;);</span></p><p><span style="text-wrap-mode: nowrap;">const day = nowDate.getDate().toString().padStart(2, &#39;0&#39;);</span></p><p><span style="text-wrap-mode: nowrap;">const hours = nowDate.getHours().toString().padStart(2, &#39;0&#39;);</span></p><p><span style="text-wrap-mode: nowrap;">const minutes = nowDate.getMinutes().toString().padStart(2, &#39;0&#39;);</span></p><p><span style="text-wrap-mode: nowrap;">const seconds = nowDate.getSeconds().toString().padStart(2, &#39;0&#39;);</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 +0800centos 禁用php5.6版本eval函數(shù)http://m.knownsfenmatter.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;">服務器只裝了一個PHP5.6版本,一定要安裝對應的suhosin-0.9.38版本,</span></p><p><span style="text-wrap-mode: nowrap;">測試成功是&nbsp; 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&nbsp;</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/&nbsp; #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;">三、測試確定是禁止,運行下面代碼</span></p><p><span style="text-wrap-mode: nowrap;">&lt;?php</span></p><p><span style="text-wrap-mode: nowrap;">eval(&quot;echo&#39;hello world&#39;;&quot;);</span></p><p><span style="text-wrap-mode: nowrap;">?&gt;</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;">如果什么都看不到或報錯,說明正確,已經(jīng)禁用</span></p><p><span style="text-wrap-mode: nowrap;"><br/></span></p><p><span style="text-wrap-mode: nowrap;">如果還是看的到,重啟下服務器。</span></p><p><br/></p>Sat, 02 Nov 2024 10:16:52 +0800返回json格式報錯:Inf and NaN cannot be JSON encodedhttp://m.knownsfenmatter.com/post/2707.html<p>$res = unserialize(str_replace(array(&#39;NAN;&#39;,&#39;INF;&#39;),&#39;0;&#39;,serialize($res)));<br/></p><p><br/></p>Wed, 16 Oct 2024 21:43:37 +0800tp5.1 時間戳運算后比較http://m.knownsfenmatter.com/post/2706.html<p>&nbsp;db( &#39;goods&#39; )-&gt;where( array ([ &#39;status&#39;,&#39;&lt;&#39;,4 ] ))-&gt;whereRaw(&quot;update_time+&quot; . 24 * 60 * 60 . &#39;&lt;&#39; . time () )-&gt;select;</p>Mon, 05 Aug 2024 16:08:59 +0800 php獲取本周一、周日http://m.knownsfenmatter.com/post/2705.html<p>$week = date ( &#39;w&#39; ) == 0 ? 7 : date ( &#39;w&#39; );</p><p>$monday = strtotime ( &#39;today -&#39; . ($week - 1) . &#39;day&#39; );</p><p>$sunday = strtotime ( &#39;today +&#39; . (8 - $week) . &#39;day -1second&#39; );</p><p>&nbsp;</p><p>$monday_date = date(&quot;Y-m-d&quot;, $monday);&nbsp; // 本周一的日期(年-月-日)</p><p>$sunday_date = date(&quot;Y-m-d&quot;, $sunday);&nbsp; // 本周日的日期(年-月-日)</p><p>&nbsp;</p><p>echo &quot;本周一:&quot;.$monday_date.&quot;&lt;br&gt;&quot;;</p><p>echo &quot;本周日:&quot;.$sunday_date;</p><p><br/></p>Mon, 24 Jun 2024 09:15:03 +0800小程序昨天日期(年月日)函數(shù)http://m.knownsfenmatter.com/post/2704.html<p>function getYesterdayDate() {</p><p>&nbsp; const today = new Date();</p><p>&nbsp; const yesterday = new Date(today.getTime() - (24 * 60 * 60 * 1000));</p><p>&nbsp; return yesterday.toISOString().split(&#39;T&#39;)[0];</p><p>}</p><p>&nbsp;</p><p>console.log(getYesterdayDate()); // 輸出格式為YYYY-MM-DD</p><p><br/></p>Mon, 03 Jun 2024 16:35:12 +0800小程序通過掃碼進入http://m.knownsfenmatter.com/post/2703.html<p>onLoad((options)=&gt;{</p><p>&nbsp; &nbsp; if(options.scene){</p><p><span style="white-space-collapse: preserve;"></span>&nbsp; &nbsp; &nbsp; const scene = decodeURIComponent(options.scene)</p><p><span style="white-space-collapse: preserve;"></span>&nbsp; &nbsp; &nbsp; console.log(scene.id);</p><p>&nbsp; &nbsp; }</p><p>})</p><p><br/></p>Mon, 01 Apr 2024 22:40:59 +0800layui input獲取值的方法http://m.knownsfenmatter.com/post/2702.html<p><span style="text-wrap: nowrap;">&lt;input type=&quot;text&quot; name=&quot;goods_sn&quot;&nbsp; value=&quot;&quot; placeholder=&quot;填寫貨品編號&quot; class=&quot;layui-input&quot;&gt;</span></p><p><span style="text-wrap: nowrap;"><br/></span></p><p><span style="text-wrap: nowrap;">&lt;script type=&quot;text/javascript&quot;&gt; </span></p><p><span style="text-wrap: nowrap;">$(document).ready(function(){</span></p><p><span style="text-wrap: nowrap;">&nbsp; &nbsp;layui.use(&#39;form&#39;, function() {</span></p><p><span style="text-wrap: nowrap;">&nbsp; &nbsp; &nbsp; var form = layui.form;&nbsp;</span></p><p><span style="text-wrap: nowrap;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; form.render();</span></p><p><span style="text-wrap: nowrap;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;input[name=&#39;goods_sn&#39;]&quot;).on(&quot;blur&quot;,function(res){</span></p><p><span style="text-wrap: nowrap;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;console.log(res.delegateTarget.value);</span></p><p><span style="text-wrap: nowrap;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }); </span></p><p><span style="text-wrap: nowrap;">&nbsp; &nbsp;});</span></p><p><span style="text-wrap: nowrap;">})</span></p><p><span style="text-wrap: nowrap;">&lt;/script&gt;</span></p><p><br/></p>Fri, 26 Jan 2024 10:17:11 +0800tp5框架中的Db::name 和 dB::table 以及 db('') 的區(qū)別http://m.knownsfenmatter.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: &quot;Helvetica Neue&quot;, NotoSansHans-Regular, AvenirNext-Regular, arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, &quot;WenQuanYi Micro Hei&quot;, 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: &quot;Helvetica Neue&quot;, NotoSansHans-Regular, AvenirNext-Regular, arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, &quot;WenQuanYi Micro Hei&quot;, serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);">如果數(shù)據(jù)庫中的表統(tǒng)一了表前綴,在application/database.php中的也寫明prefix&nbsp; =&gt; &#39;前綴_&#39;&nbsp; &nbsp;就可以使用</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: &quot;Helvetica Neue&quot;, NotoSansHans-Regular, AvenirNext-Regular, arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, &quot;WenQuanYi Micro Hei&quot;, serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);">Db::name(&#39;user&#39;)-&gt;where([&#39;id&#39;=&gt;1])-&gt;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: &quot;Helvetica Neue&quot;, NotoSansHans-Regular, AvenirNext-Regular, arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, &quot;WenQuanYi Micro Hei&quot;, 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: &quot;Helvetica Neue&quot;, NotoSansHans-Regular, AvenirNext-Regular, arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, &quot;WenQuanYi Micro Hei&quot;, 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: &quot;Helvetica Neue&quot;, NotoSansHans-Regular, AvenirNext-Regular, arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, &quot;WenQuanYi Micro Hei&quot;, 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: &quot;Helvetica Neue&quot;, NotoSansHans-Regular, AvenirNext-Regular, arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, &quot;WenQuanYi Micro Hei&quot;, serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);">Db::tale(&#39;fa_user&#39;)-&gt;where([&#39;id&#39;=&gt;1])-&gt;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: &quot;Helvetica Neue&quot;, NotoSansHans-Regular, AvenirNext-Regular, arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, &quot;WenQuanYi Micro Hei&quot;, 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: &quot;Helvetica Neue&quot;, NotoSansHans-Regular, AvenirNext-Regular, arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, &quot;WenQuanYi Micro Hei&quot;, 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: &quot;Helvetica Neue&quot;, NotoSansHans-Regular, AvenirNext-Regular, arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, &quot;WenQuanYi Micro Hei&quot;, serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);">db(&#39;&#39;)是助手函數(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: &quot;Helvetica Neue&quot;, NotoSansHans-Regular, AvenirNext-Regular, arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, &quot;WenQuanYi Micro Hei&quot;, serif; font-size: 15px; text-wrap: wrap; background-color: rgb(255, 255, 255);">db(&#39;user&#39;)-&gt;where([&#39;id&#39;=&gt;1])-&gt;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: &quot;Helvetica Neue&quot;, NotoSansHans-Regular, AvenirNext-Regular, arial, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, &quot;WenQuanYi Micro Hei&quot;, 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 +0800uniapp富文本圖片預覽http://m.knownsfenmatter.com/post/2700.html<p>&lt;rich-text :data-nodes=&quot;about&quot; :nodes=&quot;about&quot; @click.stop=&quot;<span style="text-wrap: wrap;"><span style="text-wrap: wrap;">showPreview</span></span>&quot;<span style="white-space-collapse: preserve;"> </span>style=&quot;line-height: 60rpx;&quot;&gt;&lt;/rich-text&gt;</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(/&lt;img[^&gt;]+&gt;/g); //選擇節(jié)點中的img</p><p><span style="white-space-collapse: preserve;"></span>let imgList = [];</p><p><span style="white-space-collapse: preserve;"></span>//遍歷img標簽的src里面的內(nèi)容放在定義的數(shù)組imgList中</p><p><span style="white-space-collapse: preserve;"></span>for (var j = 0; j &lt; imgs.length; j++) {</p><p><span style="white-space-collapse: preserve;"></span>imgs[j].replace(/&lt;img[^&gt;]*src=[&#39;&quot;]([^&#39;&quot;]+)[^&gt;]*&gt;/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>//最后一步就是所有圖片放在預覽的方法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