php 原生分页类 转
转自:https://www.cnblogs.com/photo520/p/7592071.html <?php / 分页类 调用方式: $p=new Page(总页数,显示页数,当前页码,每页显示条数,[链接]); print r(…
记录学习和工作
转自:https://www.cnblogs.com/photo520/p/7592071.html <?php / 分页类 调用方式: $p=new Page(总页数,显示页数,当前页码,每页显示条数,[链接]); print r(…
转自:https://www.cnblogs.com/xiaogou/p/11662840.html php返回json,xml,JSONP等格式的数据 返回json数据: header('Content-Type:application/…
$data = array( 'name'=>"汉字", 'rules'=>"^[u4e00-u9fa5]{0,}$" ); $filename = '1.json'; $jsonStr = json encode($data,…
// 删除指定目录下的全部文件 function deleteFolderFiles($dir) { $dh = opendir($dir); while ($file = readdir($dh)) { if($file != "." &…
转自:https://www.cnblogs.com/lovebing/p/14041523.html //监听 弹框-变更处理备注-提交 form.on('submit(popFormSubPass)', function ( data …
转自:https://www.cnblogs.com/htoooth/p/7242217.html $.ajax contentType 和 dataType , contentType 主要设置你发送给服务器的格式,dataType设置你…
转自:https://fly.layui.com/extend/xmSelect/ API:https://maplemei.gitee.io/xm-select/ /senior/getValue 1.引入xm-select…
//图片上传 var uploadInst = upload.render({ elem: ' musicBtn' ,url: "{:url('uploadFile')}" ,acceptMime:'audio/mpeg' ,exts:'m…
转自:https://www.cnblogs.com/makalochen/p/13040563.html 初始环境 1.压缩包格式为:zip 2.压缩文件如下 3.控制器初始代码 <?php namespace app \ zip …
转自:https://www.cnblogs.com/yerikm/p/6400098.html 上传文件类型的检测方法有这么几种---截取扩展名、获取文件ContentType (MIME) 、读取byte来判断(这个什么叫法来着?)。前…