word文档在线预览 2020年08月17日 liziyu 6 // PDF、text可以直接网页打开查看 // word、excel、ppt 文件可以通过office官方打开 $fileType = strrchr($fileUrl,'.');//获取文件类型 if($fileType == 'PDF' || $f... 阅读全文 0 评论
IE8以下浏览器要提醒 2020年08月17日 liziyu 10 PHP下脚本<!--[if lt IE 8]> <div class="browsehappy" role="dialog"><?php _e('当前网页 <strong... 阅读全文 0 评论
常用轮子专用贴 2020年08月17日 liziyu 9 常用thinkphp6轮子收集。"topthink/framework": "^6.0.0", "topthink/think-orm": "^2.0", "top... 阅读全文 1 评论
ThinkPHP6 模型多条件关联查询 2020年08月16日 liziyu 7 switch ($searchType) { case 'name': $res = OrdersModel::hasWhere('personBase',['name'=>$searchTe... 阅读全文 0 评论
think-awesome ThinkPHP5+ 资源整理 2020年08月16日 liziyu 8 感谢ThinkPHP官方收集整理本文来自:https://github.com/top-think/think-awesome 阅读全文 0 评论
Ajax 跨域请求 Access to XMLHttpRequest 解决方案 2020年08月16日 liziyu 6 错误提示Access to XMLHttpRequest at 'http://localhost:8080/api/user/login' from origin 'http://localhost解决方案1. HTML 页面ajax 请求加入 con... 阅读全文 0 评论
AJAX内 window.location.href不跳转问题 2020年08月16日 liziyu 10 $.ajax({ url: "/Ajax/System/ajaxcheshi.ashx", dataType:'text', // datatype: "json", type: "post&qu... 阅读全文 0 评论
Apache的伪静态设置 2020年08月16日 liziyu 8 特别是网站根目录下面出现index.php不太友好,下面修改办法:Apache的伪静态设置,如下Options +FollowSymlinks -MultiviewsRewriteEngine OnRewriteCond %{REQUEST_FILENA... 阅读全文 0 评论