In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces WeChat Mini Programs's relevant knowledge about how to solve the problem that the page does not render after he encounters modified data. The content is detailed and easy to understand, and the operation is simple and fast, which has a certain reference value. I believe that after reading this article WeChat Mini Programs encountered modified data, the page does not render how to solve the article will have something to gain, let's take a look.
WeChat Mini Programs encountered the problem that the page does not render after modifying the data.
Foreword:
Since the mini program came out last year, I have been optimistic and kept a certain degree of attention. I think the waves set off by Mini Program were among the front-end and other technology developers at first. This is the first time I have consciously witnessed the development of a new technology, and I still feel quite honored.
Bad name for Mini Program? My opinion is that it is certainly impossible, because the number of Mini Program submitted for approval every day continues to increase, and some Mini Program are really easy to use, such as mobike's scanning code for cycling, and I went to KTV last week. I directly used Mini Program to scan the QR code on the screen, so I can bind the room, and then click songs, cut songs, publish emojis and other convenient and fun things through Mini Program, so, in my opinion, Some application scenarios are very suitable for Mini Program, and there will be more Mini Program applications in more scenes in the future.
So far, Mini Program series of articles have written more than a dozen, basically to solve some of the problems in development, stepped on the pit. My Mini Program has been almost written, but the company's https encryption authentication is not ready, so can only be shelved there for the time being.
Data modification does not take effect
Today we will continue to introduce a question about setData ().
We often write like this:
Var that = this;wx.getStorage ({key: 'user', success: function (res) {console.log (res.data) that.data.params.uuid = res.data.uuid; that.data.params.ticket = res.data.ticket; that.data.params.courseUuid = options.courseUuid; that.data.params.isCompany = options.isCompany; that.fetchData (); that.getShareList ();}})
We did some assignments to the data object, but found that it was wrong to use the data later, and the data we assigned did not successfully render to the page. After looking for it for a long time, I found that in order for the data to take effect immediately, I had to call the setData () method to be useful, so the above code was modified as follows:
Var that = this;wx.getStorage ({key: 'user', success: function (res) {console.log (res.data) that.data.params.uuid = res.data.uuid; that.data.params.ticket = options.courseUuid; that.data.params.isCompany = options.isCompany; that.setData ({params: that.data.params}) that.fetchData () That.getShareList ();}}) on "WeChat Mini Programs encountered modified data after the page does not render how to solve" this article is introduced here, thank you for reading! I believe that everyone has a certain understanding of the knowledge of "WeChat Mini Programs encounters modified data and the page does not render how to solve". If you still want to learn more knowledge, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.