mp.weixin.qq.com 登录微信小程序开发后台
找到开发菜单
...
5年前 (2020-12-08)
喜欢
rich-text不自动换行,排查了一下 发现接口返回的内容带有pre标签。将pre标签过滤后就可以了。应该是特殊标签导致的不换行。
formatRichText(html) {
//控制小程序中图片大小
let ...
5年前 (2020-12-08)
喜欢
指定UTF-8
<script charset="UTF-8" type="text/javascript"src="js/g5418.js"></script>
...
5年前 (2020-12-07)
喜欢
div
<div class="topback" v-if="isshow">
<div class="back"><uni-icons color...
5年前 (2020-12-07)
喜欢
html
<div class="daohang" :class="{ flex: topx < top }">
<v-tabs
bgColo...
5年前 (2020-12-07)
喜欢
onPageScroll(res) {
this.top = res.scrollTop;
},
...
5年前 (2020-12-07)
喜欢
微信小程序外包项目中,经常会遇到要求的要求是页面中要可以点击大图预览。
html
<view class="attachments">
<image @click="previewImg([imgSrc],0)" cla...
5年前 (2020-12-07)
喜欢
css 代码
.blur {
-webkit-filter: blur(10px); /* Chrome, Opera */
-moz-filter: blur(10px);
-ms-filter: blur(10px);
...
5年前 (2020-12-06)
喜欢
<input ref="huifu" v-model="context" @blur="focusState2" :focus="focusState" type="text&quo...
5年前 (2020-12-05)
喜欢
前端开发会遇到判断设备类型是否是苹果端,记录一下js代码
var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //androi...
5年前 (2020-12-04)
喜欢