上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: let str = ‘张三>李四>王五’ 截取最后一个>前面的字符串 let index = str .lastIndexOf(">") str =str .substring(0,index); console.log(str) //张三>李四 截取最后一个>后面的字符串 let index = 阅读全文
posted @ 2022-08-02 09:14 赵瑛 阅读(5113) 评论(0) 推荐(0)
摘要: $aa = 'A、刘禹锡 B、白居易 C、李白 D、柳宗元'; $arr = explode(',',str_replace(array('A、','B、','C、','D、','E、','F、','G、','H、','A.','B.','C.','D.','E.','F.','G.','H.'), 阅读全文
posted @ 2022-07-29 17:05 赵瑛 阅读(194) 评论(0) 推荐(0)
摘要: $order_company_id = '78,43,23,19'; $exp = new \think\Db\Expression('field(web_company.company_id,'.$order_company_id.') desc,web_company.company_sort 阅读全文
posted @ 2022-07-26 10:58 赵瑛 阅读(351) 评论(0) 推荐(0)
摘要: var flag = 0; //标记是拖曳还是点击 $('.move').on({ mousedown:function(e) { flag = 0; }, mousemove:function(e) { flag = 1; }, mouseup:function(e) { if(flag == 0 阅读全文
posted @ 2022-07-20 09:46 赵瑛 阅读(169) 评论(0) 推荐(0)
摘要: $zip = new ZipArchive(); //参数1:zip保存路径,参数2:ZIPARCHIVE::CREATE没有即是创建 if(!$zip->open("$exportPath.zip",ZIPARCHIVE::CREATE)) { echo "创建[$exportPath.zip]失 阅读全文
posted @ 2022-06-22 16:38 赵瑛 阅读(363) 评论(0) 推荐(0)
摘要: 1、父窗口设置input输入框 <input type='hidden' id='cz' name='cz' value='1'/> 2、子窗口设置父窗口输入框值 $("#cz" , window.parent.document).val('2'); // 传给父窗口 parent.layer.cl 阅读全文
posted @ 2022-06-15 20:22 赵瑛 阅读(467) 评论(0) 推荐(0)
摘要: /* + * 功能:删除某个文件夹下所有的文件夹和文件 + * @param string $dir 要删除的文件夹的路径 + */ function del_dir($dir) { if (!is_dir($dir)) { return false; } $handle = opendir($di 阅读全文
posted @ 2022-06-14 15:24 赵瑛 阅读(346) 评论(0) 推荐(0)
摘要: // 原目录,复制到的目录 function recurse_copy($src,$dst) { $dir = opendir($src); @mkdir($dst); while(false !== ( $file = readdir($dir)) ) { if (( $file != '.' ) 阅读全文
posted @ 2022-06-14 15:21 赵瑛 阅读(271) 评论(0) 推荐(0)
摘要: .xhcy_img {width:159px;height:94px;position: relative;overflow: hidden;display: flex;justify-content: center;align-items: center;} .xhcy_img img {marg 阅读全文
posted @ 2022-06-09 11:12 赵瑛 阅读(50) 评论(0) 推荐(0)
摘要: <audio id="bgmusic" src="/static/media/flipsound.mp3" preload></audio> // audio音频 var audio = document.getElementById("bgmusic"); if (typeof WeixinJSB 阅读全文
posted @ 2022-05-25 09:55 赵瑛 阅读(578) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 11 下一页

版权所有 © 2025 沅来是澧

如果有程序开发、网站建设等需求的请联系我,QQ:47419233