摘要: /** * 获取本周的第一天 * @return String * **/public static String getWeekStart(){ Calendar cal=Calendar.getInstance(); cal.setFirstDayOfWeek(Calendar.MONDAY); 阅读全文
posted @ 2020-09-06 09:43 六元 阅读(1410) 评论(0) 推荐(0) 编辑
摘要: public function sedsms($phone){//开启SESSION session_start();header("Content-type:text/html; charset=UTF-8");//短信接口地址$target = "http://106.ihuyi.com/web 阅读全文
posted @ 2020-05-27 16:09 六元 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 打开项目,调到terminal里,输入php -i 会输出php的配置信息,复制全部信息。 打开http://xdebug.org/wizard.php 将信息粘贴到框内,点击下方按钮 跳到此页面,下载xdebug 把次文件放到php文件夹中 配置php.in 可运行phpinfo.php查看是否存 阅读全文
posted @ 2020-05-21 18:28 六元 阅读(186) 评论(0) 推荐(0) 编辑
摘要: idea安装php 下载apache https://www.apachehaus.com/ 选择apache >conf-->httpd.conf打开 修改c:\Apache 为自己的安装目录 把 #ServerName www.example.com:80 的#去掉,把www.example.c 阅读全文
posted @ 2020-04-29 15:17 六元 阅读(365) 评论(0) 推荐(0) 编辑
摘要: javac -encoding utf-8 -sourcepath .\src\com\gx -cp ..\WebContent\WEB-INF\lib\*;. -d ..\WebContent\WEB-INF\classes .\com\gx\dao\*.java .\com\gx\po\*.ja 阅读全文
posted @ 2020-04-15 10:00 六元 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 一、导入layui资源在页面写导出按钮 <input type="hidden" id="excel" value="${time}">//获取数据的条件,可无 <th id="exc" onclick="setExcel()" lang>excel</th> <script>function se 阅读全文
posted @ 2020-04-14 14:12 六元 阅读(271) 评论(0) 推荐(0) 编辑
摘要: ueditor上传bug,选择图片上传后在编辑器删除照片,服务器不会自动删除,会出现很多无用文件,占用资源。 这里有一个不成熟的方法,查询数据库里的图片,在查询服务器里的文件,判断服务器里的照片在数据库中存不存在,不存在久删除,但是这个方法吧如果有文件很多,就会耗时会比较长,不利于程序的运行。 话不 阅读全文
posted @ 2020-04-14 12:19 六元 阅读(172) 评论(0) 推荐(0) 编辑
摘要: web.xml 里配置 <context-param> <param-name>webAppRootKey</param-name> <param-value>bookdir</param-value></context-param>在方法里获取 String pathUrl = System.ge 阅读全文
posted @ 2020-04-14 11:51 六元 阅读(140) 评论(0) 推荐(0) 编辑
摘要: function getRootPath() { var curWwwPath = window.document.location.href; var pathName = window.document.location.pathname; var pos = curWwwPath.indexO 阅读全文
posted @ 2020-04-14 11:44 六元 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 一、下载ueditor资源 二、减压资源,将ueditor包(我项目里的utf8-jsp)放到项目的WebContent下的js文件夹里。 把ueditor资源里 utf8-jsp\jsp\lib文件夹里的jar包拷贝到项目的lib里。(以idea为例)选择file >Project Structu 阅读全文
posted @ 2020-04-14 11:40 六元 阅读(602) 评论(0) 推荐(0) 编辑