当前位置:网站首页>Recent applet development records
Recent applet development records
2022-07-07 02:08:00 【No social workers, I】
It's all some js dependent .
<view wx:for="{ {[11,22,33,44]}}">{ {index}} cycles { {item}}</view>
=====================
<view style="width: 300px; height: 300px; background-color: aquamarine;"
bindtap="onTap" data-title=" Ha ha ha "
>
{ {name}}
</view>
onTap: function(res){
var get = res.currentTarget.dataset.title
console.log(get)
this.setData({
name:get
})
=====================
view Chinese characters cannot wrap
style="word-break: break-all;"
=====================
Regular expressions
js The regular expression of matches are as follows
<ol>
<li ><a href="./qqyinliu.html" > Methods and techniques - QQ drainage </a></li>
</ol>
It doesn't match , Search for . Cannot match spaces and newlines .
In the following way
var pattern_url = /<ol>[\s\S]*<\/ol>/gm;
The analysis is as follows :
[\s\S]* It means completely universal ,\s It's blank , Including Spaces 、 Line break 、tab Indent, all the blanks , and \S Just the opposite , So one positive and one negative , It means all the characters .
“[ ]” Is a range descriptor .[] This symbol , Indicates that the single characters contained in it appear in unlimited order
=====================
Button text does not wrap
<button
style="
padding-left: 10px;
margin-left: 10px;
width:max-content ;"
open-type="contact"
bindcontact="handleContact">
Have questions about the project ? Click feedback
</button>
=====================
rich-text Text can be copied
<rich-text class="text" nodes="{ {all_content}}" user-select="true">
</rich-text>
边栏推荐
- Redis configuration class redisconfig
- ROS学习(二十)机器人SLAM功能包——rgbdslam的安装与测试
- ROS学习(25)rviz plugin插件
- ROS学习(26)动态参数配置
- npm install 编译时报“Cannot read properties of null (reading ‘pickAlgorithm‘)“
- ROS学习(24)plugin插件
- Domestic images of various languages, software and systems. It is enough to collect this warehouse: Thanks mirror
- How can I code for 8 hours without getting tired.
- Blackfly S USB3工业相机:缓冲区处理
- Hutool post requests to set the body parameter to JSON data
猜你喜欢
454 Baidu Mianjing 1
ROS learning (25) rviz plugin
ROS学习(十九)机器人SLAM功能包——cartographer
Baidu flying general BMN timing action positioning framework | data preparation and training guide (Part 2)
ROS learning (22) TF transformation
Cat recycling bin
STM32F4---通用定时器更新中断
ROS学习(二十)机器人SLAM功能包——rgbdslam的安装与测试
CISP-PTE实操练习讲解(二)
BigDecimal 的正确使用方式
随机推荐
Flir Blackfly S工业相机:颜色校正讲解及配置与代码设置方法
传感器:DS1302时钟芯片及驱动代码
Get to know MySQL for the first time
Halcon knowledge: segment_ contours_ XLD operator
Redis tool class redisutil (tool class III)
Baidu flying general BMN timing action positioning framework | data preparation and training guide (Part 2)
字符串转成日期对象
AcWing 361. Sightseeing cow problem solution (SPFA seeking positive ring)
Ros Learning (23) Action Communication Mechanism
Modify the system time of Px4 flight control
ROS learning (24) plugin
MySQL最基本的SELECT(查询)语句
ROS学习(二十)机器人SLAM功能包——rgbdslam的安装与测试
AcWing 1142. Busy urban problem solving (minimum spanning tree)
FLIR blackfly s industrial camera: auto exposure configuration and code
张平安:加快云上数字创新,共建产业智慧生态
The use of video in the wiper component causes full screen dislocation
Baidu flying general BMN timing action positioning framework | data preparation and training guide (Part 1)
Livox激光雷达硬件时间同步---PPS方法
机器人队伍学习方法,实现8.8倍的人力回报