<p>例如</p><p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdoAAADjCAYAAAAi5tV+AAAgAElEQVR4Ae3d/XNVVYLucev+Abdqfpip+8v9A+4PUzVVzlTdqu62xp7SueNM6R3tabW1L23Z46g4d6rV28LQjYqoKPbYKm07QitCj42ljKGRF0GB8JrwJqCEdwgBQgKEt/CWwD7PrWefnHBOcs46+2SdJMzku7pSnJy111o7n9A87nXWXvum06dPq9KXKAgggAACCCAQJXBTpZD1+xQEEEAAAQQQiBMgaOP8aI0AAggggEBQgKAN8lCJAAIIIIBAnABBG+dHawQQQAABBIICBG2Qh0oEEEAAAQTiBAjaOD9aI4AAAgggEBQgaIM8VCKAAAIIIBAnQNDG+dEaAQQQQACBoABBG+ShEgEEEEAAgTgBgjbOj9YIIIAAAggEBQjaIA+VCCCAAAIIxAkQtHF+tEYA
Where possible begins
希望你喜欢这里。有问题,请提问,或搜索现有帖子。
真诚、友善、团结、专业,共建你我引以为荣之社区。《常见问题解答》
HTML+JS 全选与取消全选功能
开发调优
<pre class="brush:html;toolbar:false"><!-- 全选框--> <input type="checkbox" class="box-title" onclick="selectAll()"> <!-- 需要被选中的部分--> <input name='box' type='checkbox'> <input name='box' type='checkbox'> <input name='box' type='checkbox'> <input name=&
733
给网站整个手电筒效果
开发调优
<p>直接加入下面的js代码即可</p><pre class="brush:html;toolbar:false"> document.querySelector('style').append(`canvas { position: fixed; left:0; top: 0; z-index: 9999; pointer-events: none; }`) &nb
286
页面禁止右键
开发调优
<pre class="brush:php;toolbar:false"><script> document.oncontextmenu = function(){ return false; } document.onkeydown = function(){ if (event.ctrlKey && window.event.keyCode==67){ return false; } } document.body.oncopy = function (){ return false; } document.onselectstart = function(){ //return false; } &l
245
js时间倒计时
开发调优
<pre class="brush:php;toolbar:false">var div = document.getElementById("showtime"); var showtime = function () { var nowtime = new Date(), //获取当前时间 endtime = new Date("2022/10/19 11:46:00"); //定义结束时间
247
php隐藏手机号码中间几位数
开发调优
<pre class="brush:php;toolbar:false">function hide_mobile ($num) { $num = substr_replace($num, "****", 3, 4); return $num; }</pre><p><span style="font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; background-color: rgb(238, 238, 238);">例如156***8956</span></p>
380
php 抛异常
开发调优
<pre class="brush:php;toolbar:false">try { }catch (Exception $e) { return jserror($e); }</pre><p><br/></p>
274
mysql通过经纬度按距离排序
开发调优
<pre class="brush:php;toolbar:false">$latitude = input('latitude',''); $longitude = input('longitude',''); if($longitude!='' && $latitude!='' ){ $_jl_str = 'ROUND( 6378.138 * 2 * ASIN( &nb
241
php字符串是佛包含
开发调优
<pre class="brush:php;toolbar:false">if(strpos('www.jb51.net','jb51') !== false){ echo '包含jb51'; }else{ echo '不包含jb51'; }</pre><p><br/></p>
308
al链接去掉默认链接颜色
开发调优
<pre style="box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; word-break: break-all; overflow-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); border-radius: 4px;">a { color: inherit; }</pre><p><br/></p>
292
通过google接口获取经纬度和地址
开发调优
<pre class="brush:php;toolbar:false"> $('.get_location').on('click',function(){ findLatLonFromIP().then( function(value) { var lat = value.lat var lng = value.lng
307
tp51打印sql
开发调优
<p><span style="color: rgb(197, 200, 198); font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; white-space: pre; background-color: rgb(29, 31, 33);">->fetchSql(</span><span class="hljs-literal" style="box-sizing: border-box; outline: 0px; margin: 0px; pad
263
分享几个可免费使用的网站CDN加速服务
开发调优
<p style="margin-top: 0px; margin-bottom: 18px; padding: 0px; box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; line-height: 26px; color: rgb(96, 98, 102); font-family: "Joe Font"; font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);"><span class="joe_message info" style="margin: 0px; padding: 8px 15px; box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; display: block; position: relative; border-left: 4
378
layui table 的宽度超出自动隐藏
开发调优
<pre class="brush:php;toolbar:false">td{ min-width: 150px; max-width: 200px; /* 超出长度隐藏 */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }</pre><p><br/></p>
599
TP5.1下实现手动断开mysql数据库链接操作
开发调优
<p>参考文章 :<a href="https://blog.csdn.net/qq_40364437/article/details/107388997" _src="https://blog.csdn.net/qq_40364437/article/details/107388997">https://blog.csdn.net/qq_40364437/article/details/107388997</a> </p><p><br/></p>
273