Java's new project learning online notes-day15

3.5.3 video playing page 1. If the passed in course plan id is 0, take out the first course plan id and complete it in the created hook method. [mw_shl_code=applescript,true]created(){ //Current requested url this.url = window.location //Course id this.courseId = this.$route.params.courseId //Course pl ...

Posted by ZephyrWest on Fri, 01 Nov 2019 01:12:01 -0700

Wechat applet request encapsulation (request)

When I started to write an applet, I was quite helpless with the request API of the applet request interface, because I didn't think so much about the urgency of the project, so I started directly. Later, I considered to make a package for unified data processing to reduce development repeatability and optimize code. First, I encapsulate a clas ...

Posted by hasek522 on Thu, 31 Oct 2019 18:49:47 -0700

Loop call Ajax, asynchronous cause disorder of order

Calling Ajax while using the for loop in the outer layer can lead to confusion. for(var i=0;i<result.recentResult.length;i++){ $.ajax({ }); } For example, the order of six pieces of data is 123456, and now the execution order may be 135246. In this way, for example, if you want the outer Ajax to get the title and then match ...

Posted by sowmithrii on Thu, 31 Oct 2019 10:48:02 -0700

Verification and data processing

Verification and data processing 1. URL verification // 1. verify url function isURL(str_url) { var strRegex = "^((https|http|ftp|rtsp|mms)?://)" + "?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?" // user@ of ftp + "(([0-9]{1,3}\.){3}[0-9]{1,3}" // URL in IP form ...

Posted by backie on Thu, 31 Oct 2019 08:55:24 -0700

Notes js asynchronous download file

Previously, because of laziness, the download of asynchronous requests was written directly in the a tag, and the request permission let the backend make special processing judgment, like this <a href="getRequestUrl">Click to download</a> Now I don't think it's very good. One is that the back-end permission needs to be judged separa ...

Posted by neon on Thu, 31 Oct 2019 07:03:22 -0700

python crawler - public comment - merchant comment

Grabbing content: public comments - Beijing - Haidian District - Gourmet Merchants - comments in recent three months 1. Required configuration: chrome browser, selenium package of python, selenium Start selenium, execute the following code, and then you can see a new chrome icon. It's a test browser, where you can log ...

Posted by bob_rock on Thu, 31 Oct 2019 06:45:14 -0700

Using Python to train network -- garbage classification, (resnet18)

The data set contains six kinds of garbage, namely, cardboard, glass, metal, paper, plastic and other waste products. The amount of data is small and only for learning. The preparation of data set label includes dividing data set into training set and test set, and making label file. Code utils.py ...

Posted by Goon on Thu, 31 Oct 2019 00:56:05 -0700

Use the front and back end to separate and search the database data of the book management system

The user login page displays the renderings:   The previous js+JQuery code shows: <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <script src="jquery.js"></script> <style> body{ background-image: url(t01f6feb7e1e ...

Posted by Nuser on Wed, 30 Oct 2019 09:16:46 -0700

TP5 interface development exception handling takeover

A few days ago, a third-party extension package was used in development. During the use, the third-party extension package threw an exception. Because this is the interface development, it needs to return error code and prompt information, so it needs to take over exception handling. This article only takes notes. If you have any wrong or not ...

Posted by marseille on Wed, 30 Oct 2019 08:55:14 -0700

By far the most complete spring boot parameter transfer scheme in the whole network

Preface After so many years of development, there must be a lot of small partners who can't figure out how to transfer various types of parameters. Many students are just using them and copying and pasting them. They are still confused when they encounter problems. posture Learn the correct posture of parameter transfer, first say how to ...

Posted by Owe Blomqvist on Tue, 29 Oct 2019 20:53:10 -0700