当前位置:网站首页>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>
边栏推荐
- Ros Learning (23) Action Communication Mechanism
- Shortcut keys commonly used in idea
- centos8 用yum 安装MySQL 8.0.x
- ROS学习(23)action通信机制
- C语言关于链表的代码看不懂?一篇文章让你拿捏二级指针并深入理解函数参数列表中传参的多种形式
- When grep looks for a process, it ignores the grep process itself
- Seconds understand the delay and timing function of wechat applet
- Flir Blackfly S 工业相机 介绍
- 场景实践:基于函数计算快速搭建Wordpress博客系统
- Scenario practice: quickly build wordpress blog system based on function calculation
猜你喜欢
Scenario practice: quickly build wordpress blog system based on function calculation
STM32F4---通用定时器更新中断
Blackfly s usb3 industrial camera: buffer processing
Errors made in the development of merging the quantity of data in the set according to attributes
我如何编码8个小时而不会感到疲倦。
The GPG keys listed for the "MySQL 8.0 community server" repository are already ins
454 Baidu Mianjing 1
New job insights ~ leave the old and welcome the new~
CISP-PTE之命令注入篇
SchedulX V1.4.0及SaaS版发布,免费体验降本增效高级功能!
随机推荐
Input and output of C language pointer to two-dimensional array
JS how to quickly create an array with length n
WCF Foundation
Shell script quickly counts the number of lines of project code
IDEA常用的快捷键
Box stretch and pull (left-right mode)
[unique] what is the [chain storage structure]?
2022/0524/bookstrap
npm install 编译时报“Cannot read properties of null (reading ‘pickAlgorithm‘)“
New job insights ~ leave the old and welcome the new~
Word wrap when flex exceeds width
ROS学习(二十)机器人SLAM功能包——rgbdslam的安装与测试
Analyze "C language" [advanced] paid knowledge [i]
How can I code for 8 hours without getting tired.
STM32F4---通用定时器更新中断
Yiwen takes you into [memory leak]
Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem
FLIR blackfly s industrial camera: explanation and configuration of color correction and code setting method
3D激光SLAM:Livox激光雷达硬件时间同步
Scenario practice: quickly build wordpress blog system based on function calculation