<pre class="brush:php;toolbar:false"> $('.get_location').on('click',function(){ findLatLonFromIP().then( function(value) { var lat = value.lat var lng = value.lng
Where possible begins
希望你喜欢这里。有问题,请提问,或搜索现有帖子。
真诚、友善、团结、专业,共建你我引以为荣之社区。《常见问题解答》
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
266
分享几个可免费使用的网站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
380
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>
602
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>
275
定时任务出现 -Query类的close方法不存在
子枫cmsX2
<p><img src="/public/upload/image/20220707/1657161085261712.png" title="1657161085261712.png" alt="image.png"/></p><p>出啊先这个问题是因为 thinkphp官方的query类没有close方法</p><p><br/></p><p><br/></p><p>我们只需要修改query类即可</p><p>找到文件<br/></p><p><img src="/public/upload/image/20220707/1657161171753638.png" title="1657161171753638.png" alt="image.png"/></p><p>打开query.php</p><p>添加close方法</p><p><img src="/public/upload/image/20220707/1657161209924101.png" title="1657161209924101.png" alt="image.png"/></p><pre class="bru
250
tp51验证码的使用
开发调优
<p>生成</p><pre class="brush:php;toolbar:false"> use think\captcha\Captcha; public function verify(){ $config = [ // 验证码字体大小 'fontSize' => 30, &n
245
调用省市区联动
开发调优
<pre class="brush:php;toolbar:false"> public function change_select_json(){ $type = input('type',''); $id = input('id',''); if($type==1){ $where[] = ['province_num','=',$id]; &nb
235
centos镜像下载
开发调优
<p>下载地址: <a href="http://archive.kernel.org/centos-vault/altarch/7.6.1810/isos/aarch64/" _src="http://archive.kernel.org/centos-vault/altarch/7.6.1810/isos/aarch64/">http://archive.kernel.org/centos-vault/altarch/7.6.1810/isos/aarch64/</a> </p><p><br/></p>
248
给出一个日期,判断是否是某个节气,或某节气的后
开发调优
<pre class="brush:php;toolbar:false"> function getJieQi($_year,$month,$day) { $year = substr($_year,-2)+0; $coefficient = array( array(5.4055,2019,-1),//小寒 &
264
哔哩哔哩视频av和bv互转 PHP源码
开发调优
<pre class="brush:php;toolbar:false"> class Bilibili{ protected $table = "fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF"; protected $tr = []; protected $s = [11, 10, 3, 8, 4, 6]; protected $xor = 177451812; protected $add = 8728348608; &nb
326
mac使用npm安装包,报没有权限
开发调优
<p>执行代码</p><pre class="brush:php;toolbar:false">npm install -g yo generator-code</pre><p>时报错<br/></p><pre class="brush:php;toolbar:false">(base) zf@192 test % npm install -g yo generator-code npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /usr/local/lib/node_modules/generator-code npm ERR! errno -13 npm ERR! Error: EACCES: permission de
289
shell 判断进程是否关闭,如果关闭,自动启用
开发调优
<pre class="brush:php;toolbar:false">#! /bin/bash nginx_procnum=`ps -ef | grep "nginx" | grep -v grep | wc -l` mysql_procnum=`ps -ef | grep "mysqld" | grep -v grep | wc -l` redis_procnum=`ps -ef | grep "redis" | grep -v grep | wc -l` memcached_procnum=`ps -ef | grep "mem
231
linux命令 set -ex 什么意思
开发调优
<p style="margin: 10px auto; font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: medium; white-space: normal;">-e 脚本中的命令一旦运行失败就终止脚本的执行<br/>-x 用于显示出命令与其执行结果(默认shell脚本中只显示执行结果</p><p style="margin: 10px auto; font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: medium; white-space: normal;">+ex表示不终止错误,不显示结果</p><p><br/></p>
302