摘要:当前台请求为post时,在request请求中要加上 header:{ 'content-type':'application/x-www-form-urlencoded' } 当前台请求为get时,在request请求中要加上 header:{ 'content-type':'applicatio
阅读全文
摘要:使用thinkphp5 写上传图片时,数据库存入的路径是uploads(该目录在public下),则显示图片的路径直接为../../数据库字段值即可
阅读全文
摘要:1. 页面刷新 window.location.reload();//页面刷新 2. 跨控制器引用该控制器的一个方法方法(thinkphp3) $weixin = A("Wxapi/Weixin"); $signPackage = $weixin -> getSignPackage(); 3. 去除
阅读全文
摘要:前端 html <div> <input type="text" id="phone" name="shouji" placeholder="请输入手机号"> <input type="button" style="float: right;color: #fff;width:40%;border-
阅读全文
摘要:(1) Url=>地址 (2) type=>请求方式(get或post) (3)timeout=>请求超时时间 (4) Async:true或false (5) data=>发送到服务器的数据 (6) dataType=>返回数据类型(xml,html,script,json,jsonp,text)
阅读全文
摘要:index.php?g=wap&m=other&a=search g=>分组 m=>控制器 a=>方法
阅读全文
摘要:$where['vdoid']=array('neq','');//eq=>等于$video = M('new')->where($where)->order("id desc")->select();
阅读全文