Let the python bottle framework support requests such as jquery ajax RESTful-style PUT and DELETE

In these two days, the background management system is developed with python bottle framework. The interface agreement uses RESTful style requests. The front end uses jquery ajax to interact with the interface. Both POST and GET requests are normal, while Request Method directly explodes "HTTP Error 405: Method Not Allowed" error when ...

Posted on Wed, 19 Dec 2018 16:24:05 -0800 by jaapoost

17 - A Brief Analysis of Compoile Flow of Web Pack Source (1) - Entry Function run

The flow chart of this section is as follows: Now we formally enter the packaging process, starting with run: Compiler.prototype.run = (callback) => { const startTime = Date.now(); const onCompiled = (err, compilation) => { /**/ }; this.applyPluginsAsync("before-run", this, err => { if (err) return callback(err) ...

Posted on Tue, 18 Dec 2018 21:03:04 -0800 by SleepyP

2 - Analysis of the application CAITON module of express source code (2)-app.render

This module also omits a slightly more complex API, app.render. First, look at the definition of the official website:   app.render(view, [locals], callback) view is the corresponding file name, locals is a configuration object, and callback is the callback function of parsing. The global attributes involved are view: Default as a built-in mo ...

Posted on Tue, 18 Dec 2018 17:15:04 -0800 by FunkyELF

Using echartsjs to realize bidirectional interaction between scatter plot and table table, and to realize echarts from table data, and to customize echarts prompt content

I have been studying echarts for some time. Today I will share some tips about echarts. Although it looks simple, it is tedious to do, but it is very practical. In a large page, the table table table is on the left and echarts scatter plot is on the right. Requirement 1 implements that all scatters in echarts are taken from the data in the tabl ...

Posted on Mon, 17 Dec 2018 21:12:04 -0800 by obscurr

No Transport Error Resolution Procedure for ajax Request in jquery in ie

First of all, the background is that the test students found that our web pages were not displayed correctly in ie9. In fact, all asynchronous interfaces were not executed. Then I started the forced investigation process. All of our asynchronous interfaces are generated using jQuery's ajax method, using version 1.11.0 of jquery. The first thing ...

Posted on Mon, 17 Dec 2018 18:03:04 -0800 by Christian B.

You Don't Know JS (C) -- Part I

type value Native Methods Mandatory Type Conversion grammar type 1. JavaScript has seven built-in types: null, undefined, boolean, number, string, object, and symbol, which can be viewed using the typeof operator. 2. Variables are typeless, but they hold typed values. Types define the behavioral characteristics of ...

Posted on Mon, 17 Dec 2018 03:57:05 -0800 by hawleyj

Creation of OpenCv-Mat Matrix (Image Container) and Detailed Explanation of CV_8UC1,CV_8UC2 and Other Parameters

(1) Detailed description of CV_8UC1,CV_8UC2 and other parameters when Mat matrix (image container) is created 1--Mat is not only a very useful image container class, but also a general matrix class. 2 -- There are many ways to create a Mat object. Let's first look at the source code of Mat Matrix/Image Container class in OpenCv: ...

Posted on Mon, 17 Dec 2018 03:18:04 -0800 by sstoveld

Three attempts to internationalize my front-end pages (jsp, html generic) (Google Search, translater.js, jquery i18n)

Three attempts to internationalize my pages (Google Search, translater.js, jquery i18n) This article is original, reproduced please attach my blog link, thank you. Suddenly, I have to internationalize my project. As a white man, I have made many attempts and achieved some results. I hope this blog can help you. First, the first idea is to int ...

Posted on Sun, 16 Dec 2018 20:21:04 -0800 by Easter Bunny

WEB Front End: Handling of Common Compatibility Problems in Browsers (IE+Chrome+Firefox) --03

Compatibility problem directory 16. The subordinates of IE67 have relative positioning and are larger than their parents. The parent overflow:hidden; the latter can't wrap it up. 17. Floating elements of the same level under IE6 will cover absolute positioning elements 18. If the width and height of the positioning parent are odd in IE6, th ...

Posted on Sun, 16 Dec 2018 16:45:04 -0800 by arisjb

JS Asynchronous Programming (2) - Promise, Generator, async/await

JS Asynchronous Programming (2) - Promise, Generator, async/await   In the last article, we talked about JS asynchronous programming, such as what is asynchronous, why to use asynchronous programming, and how to achieve asynchronous JS in browsers.Finally, we take along several JS asynchronous programming modes (callback, event and publish/su ...

Posted on Sun, 16 Dec 2018 13:33:03 -0800 by benson