摘要: /** * 下载 * @date: 2021-12-09 */ public function downloads() { set_time_limit(0); $res = $_REQUEST; $root = $this->root; $root = rtrim(rtrim($root, '\\ 阅读全文
posted @ 2021-12-11 08:25 python_yue 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1 function httpString(s) { 2 var reg = /(https?|http|ftp|file):\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/g; 3 s = s.match(reg); 4 return 阅读全文
posted @ 2021-02-25 14:41 python_yue 阅读(1579) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * @param: url 附件地址 3 * @param: filename 下载后的文件名 4 */ 5 function download(url, filename) { 6 getBlob(url, function (blob) { 7 saveAs(blob, file 阅读全文
posted @ 2019-11-14 14:11 python_yue 阅读(633) 评论(1) 推荐(0) 编辑
摘要: http://www.codeplex.com/PHPExcel http://www.phpexcel.net 开发包Tests目录有详细使用实例支持中文,注意文件编码,文件保存为utf-8 //Add a hyperlink to the sheet 添加链接$objPHPExcel->getA 阅读全文
posted @ 2019-09-29 16:33 python_yue 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 打开:include\taglib\channel.lib.php文件。 将源代码 改为: 在模版中 阅读全文
posted @ 2019-03-17 10:58 python_yue 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1 {dede:channelartlist} 2 {dede:field name='typeurl'/}'——{dede:field name='typename'/} 3 {dede:channel type='son' noself='yes' } 4 [field:typelink/] —— [field:typename/] 5 {/d... 阅读全文
posted @ 2019-03-17 09:44 python_yue 阅读(222) 评论(0) 推荐(1) 编辑
摘要: 在include/extend.func.php末尾添加 模板调用: [field:litpic function=firstimg('@me')/] 或 {dede:field name='litpic' function="firstimg(@me)"/} 模板调用: 阅读全文
posted @ 2019-01-15 14:48 python_yue 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 设置用户名、邮箱$ git config --global user.name "Your Name"$ git config --global user.email "email@example.com" 初始化本地仓库$ git init 添加至暂存区$ git add . 提交到本地仓库$ g 阅读全文
posted @ 2018-12-25 21:33 python_yue 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1、下载百度开发的UEditor编辑器(对应版本); 2、 解压下载的zip文件; 3、将解压后得到的文件夹拷贝到您网站目录下的include文件夹下并改名为ueditor; 4、将inc文件夹里边的 inc_fun_funAdmin.php的代码改为: 5、登陆网站后台依次点击系统==>系统设置= 阅读全文
posted @ 2018-12-25 14:54 python_yue 阅读(983) 评论(0) 推荐(0) 编辑
摘要: 方法一:使用DEDE后台的SQL命令行工具 入口:织梦后台-系统-SQL命令行工具 DEDE整站动态化 将所有栏目设置为“使用动态页”: update dede_arctype set isdefault=-1 将所有文档设置为“仅动态”: update dede_archives set isma 阅读全文
posted @ 2018-12-12 17:00 python_yue 阅读(248) 评论(0) 推荐(0) 编辑