摘要: 1 mkdir test //创建文件test目录 2 cd test //进入test目录 3 git init //初始化git仓库 (也可不进入目录初始化:git init 目录) 4 touch README.md //创建README.md文件 5 git add README.md // 阅读全文
posted @ 2022-04-11 23:07 枫落曳 阅读(21) 评论(0) 推荐(0)
摘要: PHP的三目运算符,算式从左到右结合: $a == 1 ? 2 : $a == 1 ? 3 : 4 等价于 ($a == 1 ? 2 : $a == 1) ? 3 : 4其他大多数语言是从右到左结合的: $a == 1 ? 2 : $a == 1 ? 3 : 4 等价于 $a == 1 ? 2 : 阅读全文
posted @ 2022-04-10 16:38 枫落曳 阅读(227) 评论(0) 推荐(0)
摘要: 代码: 1 let str = '河南省安阳市文峰区'; 2 let region = str.match(/.+?(省|市|特别行政区|自治区|自治州|县|区|岛|城)/g); 3 console.log(region); 输出: 1 (3) ['河南省', '安阳市', '文峰区'] 2 0: 阅读全文
posted @ 2022-04-07 16:37 枫落曳 阅读(675) 评论(0) 推荐(0)
摘要: 解决方案:利用bindload判断图片加载完毕,修改状态显示图片 wxml: 1 <view wx:for="{{flash}}"> 3 <image src="{{item.loadReady ? item.img : '默认图'}}" bindload="imageLoadReady" data 阅读全文
posted @ 2022-04-02 11:12 枫落曳 阅读(2678) 评论(0) 推荐(0)
摘要: HTML: 1 <div class="container"> 2 <div class="number">{$vo.title}</div> 4 </div> JS: 1 $(function(){ 2 let ready = false;//已执行状态 3 //数字递增 4 $(window). 阅读全文
posted @ 2022-03-14 12:44 枫落曳 阅读(186) 评论(0) 推荐(0)
摘要: <!--[if IE]> <style> html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); } </style> <!--<![endif]--> <!--[if !IE]><--> <style> ht 阅读全文
posted @ 2022-03-08 10:58 枫落曳 阅读(67) 评论(0) 推荐(0)
摘要: 步骤:1、创建certSigningRequest文件(简称csr)2、通过csr文件创建证书cer3、通过证书文件创建p12文件,设置密码4、创建mobileprovision描述文件,绑定证书 (注意,在开发者平台生成cer文件(建Certificates)的时候选择iOS Distributi 阅读全文
posted @ 2022-02-28 10:25 枫落曳 阅读(263) 评论(0) 推荐(0)
摘要: <VirtualHost *:80> #端口号(默认80) DocumentRoot "D:/phpstudy_pro/WWW/hqqlhh" #网站目录 ServerName 192.168.1.92 #本机IP局域网访问 ServerName hqqlhh.s #域名配置(仅本机访问)与host 阅读全文
posted @ 2022-02-24 09:40 枫落曳 阅读(162) 评论(0) 推荐(0)
摘要: 利用经纬度超链接到百度地图中: 样式如下:http://api.map.baidu.com/marker?location=39.916979519873,116.41004950566&title=位置标题&content=内容文字&output=html 阅读全文
posted @ 2022-02-09 09:27 枫落曳 阅读(365) 评论(0) 推荐(0)
摘要: bottom:calc(100rpx + env(safe-area-inset-bottom) / 2); 底部导航高度兼容,其中100rpx为自定义导航高度 阅读全文
posted @ 2022-02-09 09:27 枫落曳 阅读(101) 评论(0) 推荐(0)