当前位置:网站首页>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>
边栏推荐
- Analyze "C language" [advanced] paid knowledge [II]
- Redis tool class redisutil (tool class III)
- 大咖云集|NextArch基金会云开发Meetup来啦!
- 传感器:DS1302时钟芯片及驱动代码
- 最近小程序开发记录
- Word wrap when flex exceeds width
- JS Es5 can also create constants?
- Jacob Steinhardt, assistant professor of UC Berkeley, predicts AI benchmark performance: AI has made faster progress in fields such as mathematics than expected, but the progress of robustness benchma
- C language [23] classic interview questions [Part 2]
- 机器人队伍学习方法,实现8.8倍的人力回报
猜你喜欢
ROS学习(26)动态参数配置
传感器:土壤湿度传感器(XH-M214)介绍及stm32驱动代码
Flir Blackfly S 工业相机:自动曝光配置及代码
Flir Blackfly S 工业相机:通过外部触发实现多摄像头同步拍摄
CISP-PTE实操练习讲解(二)
Big guys gather | nextarch foundation cloud development meetup is coming!
Batch delete data in SQL - set in entity
张平安:加快云上数字创新,共建产业智慧生态
Analyze "C language" [advanced] paid knowledge [End]
centos8 用yum 安装MySQL 8.0.x
随机推荐
大咖云集|NextArch基金会云开发Meetup来啦!
CISP-PTE之命令注入篇
MySQL's most basic select statement
JS es5 peut également créer des constantes?
JVM 内存模型
Twenty or thirty thousand a leaf? "Yang Mou" behind the explosion of plant consumption
NPM install compilation times "cannot read properties of null (reading 'pickalgorithm')“
centos8安装mysql报错:The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already ins
Analyze "C language" [advanced] paid knowledge [End]
Flir Blackfly S USB3 工业相机:白平衡设置方法
将截断字符串或二进制数据
HDU 4661 message passing (wood DP & amp; Combinatorics)
Date processing tool class dateutils (tool class 1)
Get to know MySQL for the first time
Related programming problems of string
Livox激光雷达硬件时间同步---PPS方法
LeetCode. Sword finger offer 62 The last remaining number in the circle
刨析《C语言》【进阶】付费知识【一】
张平安:加快云上数字创新,共建产业智慧生态
Centos8 install MySQL 8.0 using yum x