随笔分类 - 开发查询问题
1
摘要:js中 {field: 'admin.nickname', title: __('设计师名称')}, Model public function admin(){ return $this->belongsTo(Admin::class,"admin_id",[],'LEFT')->setEager
阅读全文
摘要:#server { # listen 80; # server_name laravel.com.co; # return 301 https://laravel.com.co$request_uri; #} server { listen 80; listen [::]:80; server_na
阅读全文
摘要:Mac有一个设计原则,就是用户不需要看到的或者用户不希望看到的,都不会显示出来。但如果你想要修改其中某些文件,也是可以的,先需要显示所有的文件,可以在终端中输入命令行来实现。显示系统隐藏的文件 defaults write com.apple.finder AppleShowAllFiles -bo
阅读全文
摘要:解决方案: 这个和网络问题有关。需要查询 raw.githubusercontent.com 的ip 并添加到本地的 hosts
阅读全文
摘要::class="{selects:source==1}" 根据变量添加class :style="{paddingTop: top}" :style="{backgroundImage: 'url('+reply.record_content+')'}"
阅读全文
摘要:js try catch 获取错误行数
阅读全文
摘要:/** * curl 封装函数 * @param string url 请求地址 * @param string data 请求数据 * @param string type 请求方式 默认为GET * @return string */ function jbtm_curl(url, $d
阅读全文
摘要:<?php libxml_disable_entity_loader(true); notify_values = json_decode(json_encode(simplexml_load_string(xmlReturn, 'SimpleXMLElement', LIBXML_NOCDAT
阅读全文
摘要:/** * php 提取html中图片并替换 */ //要替换的内容 //提取图片路径的src的正则表达式 $match_str = '/(<img([^>]*)\s*src=(\'|\")([^\'\"]+)(\'|\")|url.*https:.*=png)/'; preg_match_
阅读全文
摘要:public function getStr($str=false){ $poems="从,善,如,登,从,恶,如,崩,已,知,花,意,未,见,其,花,,,已,见,其,花,,,未,闻,花,名,如,果,能,不,长,大,就,好,了,啊,可,是,时,光,在,身,后,挡,住,退,路,或,许,前,路,永,夜,
阅读全文
摘要:function getMonthAndDay(date1,date2){ datestart= date('Y-m-d',strtotime(date1)); if(strtotime(datestart)>strtotime(date2)){ tmp=date2; $date2=
阅读全文
摘要:此错误是由配置错误、版本不匹配或引导安装损坏引起的。如果已经安装了引导程序和反应引导程序,则可以通过以下方式进行更改: npm install --save bootstrap@^4.0.0-alpha.6 react-bootstrap@^0.32.1 (检查package.json是否包含“bo
阅读全文
摘要:public function items() { return $this->belongsToMany('App\Model\Cz\CzCourse', 'cz_picture_course', 'picture_id', 'course_id'); } //获取分类 public function getList() { ...
阅读全文
摘要:money_reg = '/^[1-9]\d*|^[1-9]\d*.\d+[1-9]/';if(!preg_match(money_reg, money)){ $this->ajaxError('金额格式错误');}
阅读全文
摘要:<?php public function getid($dy_url){ header=get_headers(dy_url); str = "/^.*?(\d+).*/"; preg_match(str,header[6],arr); return $arr[1]; }
阅读全文
摘要:注意 当请求https的数据时,会要求证书,这时候,加上下面这两个参数,规避ssl的证书检查
阅读全文
摘要:调用is_mobile 如果返回1则是手机端 如果返回0则是电脑端
阅读全文
摘要:、、、、55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
阅读全文
摘要:php发送邮件 -------------------------------------------------------------------------------- "; link = fsockopen(smtp,25);//socket链接 if($link){ set_...
阅读全文
1