当前位置:网站首页>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>
边栏推荐
- Date processing tool class dateutils (tool class 1)
- Zabbix 5.0:通过LLD方式自动化监控阿里云RDS
- 场景实践:基于函数计算快速搭建Wordpress博客系统
- POJ 3177 redundant paths POJ 3352 road construction (dual connection)
- MySQL's most basic select statement
- Flir Blackfly S 工业相机:通过外部触发实现多摄像头同步拍摄
- 2022/0524/bookstrap
- Web开发小妙招:巧用ThreadLocal规避层层传值
- 传感器:土壤湿度传感器(XH-M214)介绍及stm32驱动代码
- Shortcut keys commonly used in idea
猜你喜欢
PartyDAO如何在1年内把一篇推文变成了2亿美金的产品DAO
FLIR blackfly s industrial camera: auto exposure configuration and code
红外相机:巨哥红外MAG32产品介绍
Scenario practice: quickly build wordpress blog system based on function calculation
Analyze "C language" [advanced] paid knowledge [i]
刨析《C语言》【进阶】付费知识【一】
centos8 用yum 安装MySQL 8.0.x
Batch delete data in SQL - set in entity
张平安:加快云上数字创新,共建产业智慧生态
Vingt - trois mille feuilles? "Yang mou" derrière l'explosion de la consommation végétale
随机推荐
激光雷达:Ouster OS产品介绍及使用方法
Can't you understand the code of linked list in C language? An article allows you to grasp the secondary pointer and deeply understand the various forms of parameter passing in the function parameter
First experience of JSON learning - the third-party jar package realizes bean, list and map to create JSON format
字符串的相关编程题
NPM install compilation times "cannot read properties of null (reading 'pickalgorithm')“
2022/0524/bookstrap
Mysqlbackup restores specific tables
Cisp-pte practice explanation (II)
STM32F4---PWM输出
最近小程序开发记录
Redis configuration class redisconfig
Word wrap when flex exceeds width
RC振荡器和晶体振荡器简介
刨析《C语言》【进阶】付费知识【完结】
Compile command line terminal swift
ROS learning (XX) robot slam function package -- installation and testing of rgbdslam
ROS学习(22)TF变换
Twenty or thirty thousand a leaf? "Yang Mou" behind the explosion of plant consumption
张平安:加快云上数字创新,共建产业智慧生态
Zabbix 5.0:通过LLD方式自动化监控阿里云RDS