2023年3月10日
摘要: <?php $str1 = '<div class="swiper-slide"><div> <img src="uploads/image/20210831/1630375137.jpg" alt=""> </div></div><div class="swiper-slide">'; var_d 阅读全文
posted @ 2023-03-10 17:06 栋H栋 阅读(96) 评论(0) 推荐(0) 编辑
  2022年2月16日
摘要: HTML部分: 创建一个表格容器 <table class="layui-hide" id="table" lay-filter="table"></table> js渲染部分: <script> layui.use(['table','form'], function(){ let table = 阅读全文
posted @ 2022-02-16 14:09 栋H栋 阅读(2585) 评论(0) 推荐(0) 编辑
  2021年7月29日
摘要: <!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="initial-scale=1.0, us 阅读全文
posted @ 2021-07-29 16:41 栋H栋 阅读(85) 评论(0) 推荐(0) 编辑
摘要: var s = '<img src="xxxx.jpg" alt="">afaf<img src="xxxx.jpg" alt="">'; s = s.replace(/(<img[\s\S]+?)src=(['"][^'"]+)['"]/ig, "$1 src='1.jpg'&qu 阅读全文
posted @ 2021-07-29 16:37 栋H栋 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 一、在元素内部/外部追加元素append,prepend:添加到子元素before,after:作为兄弟元素添加html:复制代码 代码如下:<div id="content"><p>在我的后面追加一条新闻</p></div>Javascript:复制代码 代码如下:<script type="te 阅读全文
posted @ 2021-07-29 16:33 栋H栋 阅读(310) 评论(0) 推荐(0) 编辑
  2021年6月28日
摘要: date('Y-m-d',timestamp); //输出年-月-日date('Y-m-d H:i:s',timestamp); //输出年-月-日 时:分:秒 //php获取今天日期date("Y-m-d",strtotime("today")); //strtotime(‘today’)输出今天 阅读全文
posted @ 2021-06-28 10:29 栋H栋 阅读(1815) 评论(0) 推荐(0) 编辑
  2021年6月23日
摘要: 博主帮我解决了大问题,感谢!记录这个坑 (遇坑这个接口文档没有PHP签名的示例,而且也不是根据键值和value值进行升序、降序,是比较的每个字符串的每个字符的ACSII值,一直比较出大小为止) // 比较两串字符的ascii码大小 function check_ascii(string $str1, 阅读全文
posted @ 2021-06-23 11:35 栋H栋 阅读(695) 评论(0) 推荐(0) 编辑
  2021年6月3日
摘要: 例子: html部分: <img src = "../1.jpg" id = "img1"> CSS部分: #img1{ cursor: zoom-in; //放大图标 cursor: zoom-out; //缩小图标 } 效果图: 放大图标: 缩小图标: 阅读全文
posted @ 2021-06-03 10:38 栋H栋 阅读(168) 评论(0) 推荐(0) 编辑
  2020年12月12日
摘要: PHP里用chr(2)或者chr(1)分割字符串 $str1 = '1'.chr(2).'2'.chr(2).'3'; $str2 = '1'.chr(1).'2'.chr(1).'3'; 返回值显示为: str1: "123" str2: "123" 返回值js拆分成数组的时候要写成: v 阅读全文
posted @ 2020-12-12 14:38 栋H栋 阅读(1139) 评论(0) 推荐(0) 编辑
  2020年12月11日
摘要: style="clear:both;" 阅读全文
posted @ 2020-12-11 16:03 栋H栋 阅读(66) 评论(0) 推荐(0) 编辑