当前位置:网站首页>Uniapp display rich text effect demo (organize)
Uniapp display rich text effect demo (organize)
2022-07-28 00:57:00 【I'm happy】
uniapp Show rich text :
<template>
<view class="rtfBox">
<view class="margin-left30 margin-right30 margin-top20 margin-bottom20">
<rich-text :nodes="content"></rich-text>
</view>
</view>
</template>
<script>
export default {
components: {
},
data() {
return {
content: '',
}
},
// Page loading
onLoad(e) {
//uni.hideTabBar(); // Don't let the bottom show tab Options
console.log(e,'eeee');
uni.setNavigationBarTitle({
title: e.title
})
// var data = this.$.get_data('contentTxt');
var data = '<p> Privacy policy 11</p><p><img src="https://public.haotiku.com/haotiku/videos/20220216/1644974733576.png" alt="" width="571" height="337" /></p><p> Third party integrated in the application SDK And plug-ins :<br />1.cn.jpush.android: It is used to push in app information and message notifications to users .<br />2.com.alipay: be used for app Internal members pay information fee <br />3.com.umeng.commonsdk: For wechat qq Third party login authorization and sharing .<br />4.com.amap.api: Gaode map is used to publish position positioning , User induction navigation .</p>';
data = data.replace(/\<img/g, "<img style='width: 100%;'");
this.content = data;
},
// Page shows
onShow() {
},
// Method
methods: {
},
// Compute properties
computed: {
},
// The listener
watch: {
},
// Page hidden
onHide() {
},
// Page uninstall
onUnload() {
},
// Trigger pull-down refresh
onPullDownRefresh() {
},
// Handling function of page pull bottom event
onReachBottom() {
},
}
</script>
<style lang="scss" scoped>
.rtfBox {
}
</style>
<!-- Main code -->
<rich-text :nodes="content"></rich-text>
<script>
export default {
data() {
return {
content:''
}
},
onLoad(){
var data = '<p> Privacy policy 11</p><p><img src="https://public.haotiku.com/haotiku/videos/20220216/1644974733576.png" alt="" width="571" height="337" /></p><p> Third party integrated in the application SDK And plug-ins :<br />1.cn.jpush.android: It is used to push in app information and message notifications to users .<br />2.com.alipay: be used for app Internal members pay information fee <br />3.com.umeng.commonsdk: For wechat qq Third party login authorization and sharing .<br />4.com.amap.api: Gaode map is used to publish position positioning , User induction navigation .</p>';
data = data.replace(/\<img/g, "<img style='width: 100%;'")
this.content= data;
},
methods: {
}
}
</script>
边栏推荐
- Valued at $36billion! SpaceX, which is about to launch its first manned launch, raised $346million
- Basic operations of MySQL database (2) --- Based on data table
- LeetCode - 寻找两个正序数组的中位数
- 投资80亿!南京华天封测一期项目即将投产!
- The server is poisoned - the dish is the original sin
- "C language" deep entry rounding & four functions
- Logic of automatic reasoning 07 - predicate calculus
- Database daily question --- day 22: last login
- 7. Typescript part Foundation
- startUMl
猜你喜欢
![[bre] software build release automation](/img/c6/daead474a64a9a3c86dd140c097be0.jpg)
[bre] software build release automation

In July, a software testing engineer came to the company. He looked like a hairy boy. He didn't expect to be the new generation of roll King

Build Release Blogs

Selection of FFT sampling frequency and sampling points

融云 IM & RTC 能力上新盘点

点分治解析

How does JMeter solve the problem of garbled code?

【OpenCV 例程 300篇】241. 尺度不变特征变换(SIFT)

Fastjson历史漏洞复现

函数相关知识
随机推荐
Network equipment hard core technology insider firewall and security gateway chapter (VI) security double repair under the law
MySQL limit使用及超大分页问题解决
Network device hard core technology insider firewall and security gateway (IX) virtualization artifact (II)
LED, nixie tube and key of single chip microcomputer
Possible reasons why there is no voltage in the corresponding channel, but the ADC value is changing greatly and is not equal to 0
mysql数据库的基本操作(一)-——基于数据库
[meetup preview] openmldb + ONEFLOW: link feature engineering to model training to accelerate machine learning model development
ASML推出第一代HMI多光束检测机:速度提升600%,适用于5nm及更先进工艺
The influence of head zeroing and tail zeroing on FFT output
网络设备硬核技术内幕 防火墙与安全网关篇 (十二) 零接触办公的奥秘 下
uniapp显示富文本效果demo(整理)
【C语言入门】ZZULIOJ 1026-1030
Ali Er Mian: why do we need to separate databases and tables?
递归求解迷宫问题
How to smoothly go online after MySQL table splitting?
R language evaluates the relative importance of the predictive factors (variables, characteristics) of the regression model, scales the predictive variables of the regression model, and then construct
map集合
LeetCode - 寻找两个正序数组的中位数
Leetcode 415. string addition and 43. string multiplication
Logic of automatic reasoning 09 - automatic theorem proving