The values obtained from initialization of other pages of the applet project are in two states (solved)
The values obtained from initialization of other pages of the applet project are in two states. Other pages cannot get global cookie s under app.js global data
app.js file
onLaunch: function () {
console.log('app-onLaunch')
this.getUserInfo();
},
onShow:function(){
console.log('app-onShow')
},
// Get user information, l ...
Posted by Peter Anselmo on Tue, 31 Mar 2020 10:16:27 +0200
Simple use of z-tree
Along with the work of the previous requirement, because the project involves multi-level organizations, and there are a series of associated management under the organization, such as terminals. If you want to query the terminals, you have to query according to the organization, so the display of the organization is involved i ...
Posted by steven21 on Tue, 31 Mar 2020 07:28:42 +0200
Restful API Interface Security Design
1.API Interface Design Specification
https://github.com/mishe/blog/issues/129
2. Security Design
a. Whitelist restrictions
Accept only the request response from a specific system, the caller's IP address needs to be reported in the system, otherwise it cannot be invoked
b. Validation of legitimate identity
Basic Authentication: This ...
Posted by OM2 on Sat, 28 Mar 2020 09:05:09 +0100
PHP Clean Code (Part 1)
introduce
Software Engineer Guidelines for Robert C.Martin's Clean Code The same applies to PHP.It is not a guide to coding style, it guides us to write readable, reusable, and decomposable code in PHP.
Not all guidelines must be strictly followed, even some have become common conventions.This is just a guideline, many of which are years of ex ...
Posted by Kalland on Fri, 27 Mar 2020 09:16:14 +0100
Set up eureka,gateway,admin,redis,docker series. Redis and redisapi are together
This chapter covers the redis interface Aspect signature swagger2
1. Install redis on Linux centOS server. Go to the Internet for specific installation commands. It's relatively simple. I used the config set maxmemory policy volatile LRU policy
2. Create an empty module project
Add pom dependency
<dependencies>
<dependency> ...
Posted by l00ph0le on Thu, 26 Mar 2020 16:09:58 +0100
Experience summary of developing H5 page control by wechat based on Jquery WeUI
When wechat develops H5 pages, it often develops the interface effect based on WeUI or JQuery WeUI. Because I like to use JQuery on the Web interface of Asp.net, I prefer to use JQuery Weii, this essay combines the official case and the experience summary of the actual development process of the project, analyzes and summarizes the interface co ...
Posted by oc1000 on Tue, 24 Mar 2020 07:42:47 +0100
Sharing and downloading functions of applet JAVA in action (69)
We can't share the circle of friends on the applet, we can only spread it by sending the designated users and the designated user group. It's very important to master the sharing function! Source code: https://github.com/limingios/wxProgram.git No.15 and springboot in
Official introduction
https://developers.weixin.qq.com/miniprogram/dev/frame ...
Posted by ok on Mon, 23 Mar 2020 11:52:07 +0100
Use Python to dig out those "amazing" grandma masters in station B!
Preface
Recently, the new year's Party of station B has swept over all major video websites due to its unique creativity, which has brought great positive impact to the company. At the same time, the stock price has also skyrocketed. Presumably, everyone regrets not buying the shares of station B earlier:
However, today we are not goi ...
Posted by numoon56 on Mon, 23 Mar 2020 11:38:50 +0100
Struts 2 landing interceptor
1. Configure the timeout time of session in web.xml
<! -- configure session timeout in minutes -- >
<session-config>
<session-timeout>180</session-timeout>
</session-config>
2. I also post a session tool class here to facilitate obtaining the user information in the session after the successful login.
...
Posted by wafflestomper on Fri, 20 Mar 2020 21:04:38 +0100
Scrapy weather forecast practice of Python crawler
objective
Write a real crawler, and save the crawled data to txt, json and existing mysql database.PS note: many people will encounter various problems in the process of learning python. No one can easily give up. For this reason, I have built a python full stack for free answer. Skirt: seven clothes, 977 bars and five (homophony of numbers) ca ...
Posted by jolly on Fri, 20 Mar 2020 11:00:24 +0100