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
rabbitmq series message idempotency processing
1. springboot Integrating Rabbit MQ
We need to create two new projects, one as a producer and the other as a consumer.Add an amqp dependency to pom.xml:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
Add rabbitmq information ...
Posted by Sephirangel on Fri, 17 Jan 2020 02:02:21 +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
Connect raspberry pie to Microsoft cloud Azure IoT Hub in 30 minutes and show the data as a visual chart
Raspberry pie is a necessary toy for many hands-on people. In this section, let's take out raspberry pie, connect it to Microsoft cloud Azure's IoT Hub in 30 minutes, and then visualize the temperature and humidity curve.
More content, please pay attention to the public number "cloud computing actual combat".
For the complete operat ...
Posted by hakhaimo on Wed, 15 Jan 2020 05:36:38 +0100
http request parameter mode type Query String Parameters, Form Data, Request Payload usage record and qs usage
Article directory
The origin of the article
Request parameter type introduction
Query String Parameters
Form Data
Request Payload
Introduction to the use of qs
qs.parse()
qs.stringify()
The difference between qs.parse() qs.stringify() and JSON.stringify() JSON.parse():
The difference between para ...
Posted by vladibo on Mon, 13 Jan 2020 10:05:34 +0100
[Vue] import custom external js
1. Define js file, which is put under js file under static
The code is as follows:
// Judgement authority
function hasPermissionJs(val) {
var restoredSession = JSON.parse(sessionStorage.getItem('userInfo'));
var roles = restoredSession.user.roles;
for(var i=0; i<roles.length; i++){
for(var j=0; j<roles[i].a ...
Posted by Jiraiya on Fri, 10 Jan 2020 17:43:29 +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
On the application of knockout pull-down multiple choice value
In the recent development process, some drop-down projects about knockout have been applied.
Make a record here about the development of drop-down and multi selection.
Here's the code
When adding, there is no need to give the initial value
--viewmodel function ViewModel()
{
//Position drop-down binding
this.postN ...
Posted by maniac1aw on Tue, 07 Jan 2020 15:44:51 +0100
Super Ledger Fabric Actual REST API Service [with Source Code]
Hyperledger Fabric provides software development kits/SDKs to help developers access the fabrics network and chain codes deployed on the network, but Hyperledger Fabric does not officially provide an easy-to-use REST API access interface. In this tutorial, we will learn how to use Hyperledger Fabric's SDK to develop a REST API server.
1. Overvi ...
Posted by NoSalt on Tue, 07 Jan 2020 05:39:22 +0100
How to debug so many Spring Cloud microservice interfaces?
Preface
Today, let's talk about the debugging and management of service interface under Spring Cloud microservice! We know that under the microservice architecture, the software system will be divided into many independent running services, and these services need to communicate with each other, so they need to define a variety of service inte ...
Posted by martincrumlish on Mon, 06 Jan 2020 19:09:29 +0100