Correct posture of cascading tick in bootstrap treeview
Last article It has been said that it has its own cascading function. You have to use this: https://github.com/patternfly/patternfly-bootstrap-treeview
$('#tree').treeview({
showCheckbox: true,
data: [data], // data is not optional
levels: 3,
enableLinks: true,
hi ...
Posted by snafudawn on Fri, 01 May 2020 10:22:24 -0700
Use Gson to parse complex and abnormal Json data (including Chinese key)
Original address: http://www.cnblogs.com/bianmajiang/p/3998083.html
Interface documentation:
Request data
json={"uid":"","sid":"","ver":"1",
"request":{}
}
1
2
3
Return data
{"ret":0,
"response":{
"tag_category":{
"Chinese Painting":{
"years":["Pre Qin and Han Dynasties","Chu state in the Warr ...
Posted by ultimachris on Fri, 01 May 2020 08:50:32 -0700
2018-01-06 deep copy and shallow copy of javascript
catalog:
What is replication?
A simple shallow copy
An example of deep replication
Several general methods of deep and shallow replication
Deep copy
What is replication?
Simple variable replication, small memory, we can directly copy without reference.
First, deep copy and shallow copy are only for complex objects such as object and arra ...
Posted by kcorless on Fri, 01 May 2020 08:28:23 -0700
jquery.uploadify.3.2.1 trial in IE9,IE10 upload file button will not be able to click
I used to use version 2.1.4. After seeing the update, I tried it and found that there were many changes.
First, introduce js and css
<link rel="stylesheet" href="uploadify.css" />
<script src="jquery.uploadify.js"></script>
Of course, jquery is essential
Next is the code:
//File upload
...
Posted by jdimino on Fri, 01 May 2020 05:46:54 -0700
php development example of wechat payment enterprise payment
The application scenario of enterprise payment: official account pays to concerned users, such as refund, settlement, etc.
Material Science: Wechat public platform development document
Explain
1. The certificate must use the certificate in its own merchant (Note: the certificate path must be an absolute path. If the relative path is use ...
Posted by I WanT To Code PHP on Fri, 01 May 2020 05:22:31 -0700
[AS2.3.3]MVP mode learning
Some specific charts are not mentioned here! Start the learning journey directly.
1. Basic mvp pattern implementation
An example is to access the web address to get the json string
The website is http://gank.io/api/data/benefits/10/1
The network is implemented by rxjava2+okttp3+retrofit2 Network frame address
First, the layering of mvp ...
Posted by alsinha on Fri, 01 May 2020 00:20:32 -0700
Example used by JSONP and artTemplate template template engine -- request weather data
Example used by JSONP and artTemplate template template engine - Request weather data The first two articles briefly summarize The principle of cross domain request in jsonp , and The use of artTemplate template engine . So make a simple example of requesting weather.
I don't know why. Yesterday's request for Baidu ...
Posted by praxiz on Fri, 01 May 2020 00:19:29 -0700
About the pit to be filled when the user-defined button group switches to display the data returned by ajax
As shown in the figure, this is my button group. When I click day / week / month, different data will be displayed in the white area of the figure below.
However, when we switch to display data, there will be several problems: 1. When the background interface is not available, the loading waiting chart should be displayed. 2. When the backgr ...
Posted by Loathor__Healer on Thu, 30 Apr 2020 22:13:28 -0700
Spring Security OAuth2 integration of JWT
Json web token (JWT) is an open standard based on JSON, which is used to transfer statements between network application environments( RFC 7519 )The token is designed to be compact and secure, which is especially suitable for SSO scenarios of distributed sites. JWT declaration is generally used to transfer the authenticated user identity infor ...
Posted by Aaron_Escobar on Thu, 30 Apr 2020 19:00:28 -0700
JQuery calls Ajax to asynchronously transfer the type of response data received by Servlet
When we use ajax encapsulated by jQuery in the web
Callbacks can be executed
But this callback function accepts fixed data types
In the servlet background
Well known transmission types are
text
json
Of course, this is transmitted to jQuery
If jsp is used
That's another thing
So far, I haven't specifically test ...
Posted by chrisredding on Thu, 30 Apr 2020 18:17:14 -0700