Source Explanation for Ajax Actual Projects (Quick Start Example) Github Source

Author| Jeskson Source|Dada Front End Bistro Source address: https://github.com/huangguangda/Ajaxitm What is Ajax technology?Use Ajax technology in the real world, understand the way the front and back end interact, understand the mode of the mobile end, understand the new technology of H5, understand the use of CSS3, and the use of JQuery. Aj ...

Posted by ody on Sat, 28 Dec 2019 11:45:40 -0800

The basic implementation of express middleware system

I always think that express middleware system is very vivid in this kind of flow processing, just like the processing pipeline, each link is completing its own work for different parts of the same product, and finally gets a finished product. Today, we will implement a simple [middleware queue]. I. API level Initialization method let middlew ...

Posted by Gamerz on Sat, 28 Dec 2019 10:42:11 -0800

bootstrap js dynamically adds option element to select without display

In the afternoon, when using bootstrap to add option elements to select, js is used to generate them dynamically, and it is found that they can't be generated. So F12 checks that select has been added. The actual display is not the select but the contents of the div below. At this time, you need to force the refresh of the elem ...

Posted by EagerWolf on Sat, 28 Dec 2019 08:27:23 -0800

Java Efficient Code 50 Cases

Reading Guide There are only two substances in the world: high efficiency and low efficiency; there are only two kinds of people in the world: high efficiency and low efficiency.--Shaw Constant-Variable Assigning constants directly prohibits declaration of new objects Assigning a constant value directly creates an object reference that points t ...

Posted by Shaba1 on Fri, 27 Dec 2019 20:53:05 -0800

jQuery (Ajax+json front and back data interaction)

jackson Jackson is a simple java application library. Jackson can easily convert Java objects into json objects And xml documents, you can also convert json and xml into Java objects Core code: ObjectMapper mapper = new ObjectMapper(); mapper.writeValueAsString(obj); //Number of rows to get source data int count = m ...

Posted by Thundarfoot on Fri, 27 Dec 2019 13:45:46 -0800

Best practices for AWS IAM Role

I. EC2 For the application above EC2, do not assign User Credentials, use IAM Role Attachment.You can access the meatdata of EC2 to view the Role permission granted curl http://169.254.169.254/latest/meta-data/iam/security-credentials/ 2, Software on local laptop For users who develop and test on their own computers, users need access rights o ...

Posted by mitzleah on Fri, 27 Dec 2019 06:04:52 -0800

js automatically rolls back to the historical browsing location when it returns to the page

In the actual development process of my system, I meet a requirement that I need to make the application return to the original location of each page when it jumps between each page for the convenience of users. When I look up the data on the Internet, I see a lot of schemes, and there are different opinions, but there are only a f ...

Posted by xlordt on Wed, 25 Dec 2019 07:56:41 -0800

Generating QR code with thinkphp5 framework

Two words, first code:   In the first part: no need to save the file locally, and display directly on the foreground page: This is the content in the controller. Oh, by the way, first download the SDK:.phpqrcode class file download, download address: https://sourceforge.net/projects/phpqrcode/ Plug in only needs: the downloaded class file is a ...

Posted by van__ on Wed, 25 Dec 2019 07:43:35 -0800

Making "wheels" by yourself -- several methods commonly used in python

Because of the content of the work, we often need some python scripts. Over time, we found that some methods are often used, so we edited some common, popular and general methods by ourselves. I'm not talented, but I also hope to contribute to open source. Finally, code HA is attached; 1, At present, only five methods are summarized in this do ...

Posted by Nommy on Wed, 25 Dec 2019 01:32:27 -0800

Applet development -- override HalfScreenDialog and getPhoneNumber buttons

Using HalfScreenDialog, you can make the pop-up window below. Here I give you a hint of the authorized mobile phone number. HalfScreenDialog documentation https://developers.weixin.qq.com/miniprogram/dev/extended/weui/half-screen-dialog.html Introducing HalfScreenDialog Download components Rewrite HalfScreenDialog Because of the setting of ...

Posted by daveoliveruk on Tue, 24 Dec 2019 06:04:42 -0800