After the webpack is packed, it cannot be called. Instead, use uglifyjs to pack and compress

Background: The project is based on native js and does not use any scaffolding or framework, but it also needs to be packaged and compressed. Some global variables are declared in the js of the project for other js to call. At this time, if we use the web pack, based on the web Pack feature, we will nest a layer of large functions, which will t ...

Posted by jwmessiah on Fri, 17 Jan 2020 14:01:51 +0100

vscode code format

1, Install three vscode plug-ins: 1.ESLint 2.Prettier - Code formatter 3.Vetur As shown in the figure below: 2, Open profile File - > Preferences - > Settings Now you see the configuration interface. Click the button in the upper right corner (as shown below) to open the settings.json file. 3, Add ...

Posted by kanenas.net on Thu, 16 Jan 2020 12:32:29 +0100

[Python3 Crawler] Crawl records of JS-encrypted data at once

1. Preface This is a record of cracking JS encrypted data on a website at: https://www.qimingpian.cn/finosda/event/einvestment To get the investment event information on this page, you can first confirm that the data is transmitted through AJax, not written directly in the source code of the web page.   2. Steps 1. Grab a bag Open the develop ...

Posted by k4pil on Thu, 16 Jan 2020 03:39:27 +0100

You should not call base in this method Xamarin Forms Renderer

Recently, I am working on Xamarin Forms project. I believe you are unfamiliar with Xamarin. In fact, it is also a cross platform technology. Please refer to the following official document to understand. What is Xamarin.Forms? Xamarin.Forms is an open-source UI framework. Xamarin.Forms allows deve ...

Posted by jeremuck on Wed, 15 Jan 2020 10:25:47 +0100

AJAX of Django

Catalog AJAX introduction AJAX basic syntax structure Data encoding format of front and back end interaction Form form ajax submission How to get json data from the backend? How can we take it ourselves? AJAX send file Automatic serialization Pager ap ...

Posted by millwardt on Fri, 10 Jan 2020 14:48:46 +0100

java integrated pageoffice to open word file online, and set bookmark text color and background color with js

1, Core code 1: First you need to navigate to the location of the bookmark 2: To set the text color and background color of bookmark, vba macro is needed. 2, Specific implementation process 1. Download the integration file, introduce the jar package and configure the web.xml on the official website http://www.zhuzhengsoft.com/dowm/ G ...

Posted by renj0806 on Wed, 08 Jan 2020 05:49:50 +0100

Twenty years of programming language, which one is your favorite?

Introduction: in 2020, the programming language will also determine the best language in 2019. Who will it be? From the perspective of TIOBE, Java, C and Python basically lock the top three positions. The position of Java's boss in the Jianghu can't be shaken. Original: Zhou radish and radish In 2020, the programming language will also d ...

Posted by feckless on Mon, 06 Jan 2020 16:44:57 +0100

JavaScript code style

JavaScript code style 1. specification In order to agree on your code style, some relatively standard code style specifications have been born in the community: JavaScript Standard Style Airbnb JavaScript Style 2. ESLint ESLint only provides tools and rules, how to configure these rules depends on the user. This is ill ...

Posted by senyo on Mon, 06 Jan 2020 02:35:07 +0100

The difference of innerHTML, innerText, value in JS

I. difference innerHTML Adding HTML code to the control is to set the HTML in an element. The tag is effective for text information. innerTEXT Print the plain text information between the labels, display the labels, the labels are invalid, and the lower version of Firefox does not support it. value Display all contents in ...

Posted by imarockstar on Mon, 06 Jan 2020 00:36:37 +0100

js type judgment - rich and easy to use

First, Sometimes I write something to judge the type. When I test it, I really can't praise the type judgment in the native and jQuery. So I write a good type judgment, which is generally enough.   1 function test(type) { 2 if(type === null || type === undefined) { 3 return type; 4 ...

Posted by frao_0 on Sun, 05 Jan 2020 04:52:59 +0100