![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
处理数据
我不淑女girl
这个作者很懒,什么都没留下…
展开
-
H5前端解决跨域
不是第一次遇到跨域问题,但是今天是第一次用前端解决,前端解决跨域,网上 一搜一大堆,但是我测试了好几种,都没能解决,后来干脆自己去摸索测试 最终使用meta http-equiv 属性解决跨域问题,接下来还会仔细研究其他方法解决跨域问题,到时候再更新 <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> <meta http-equiv="Access-Control-Allow-Or原创 2020-08-03 13:51:32 · 2476 阅读 · 2 评论 -
微信小程序给循环数组动态添加元素,评论或点赞数量超过999,展示999+
有时候为了展示,需要往每条数组中添加一个值为boolen类型的元素; 首先要循环这个数组,其次添加元素,然后定义元素的boolen值 代码如下: wxml代码: <view wx:for="{{arr}}" wx:key="{{item.index}}" class='list'> <view wx:if = "{{item.show}}" class='listChild'...原创 2019-03-22 11:44:01 · 1617 阅读 · 0 评论