Vue-cli local environment API proxy settings and resolving cross-domain

... 前言 We can start our project when we use vue-cli to start the project npm run dev Our request address is to request interface data with localhost:8080, localhost has no way to set the cookie. We can set up a proxy in the vue-cli configuration file. There are many cross-domain methods,...


Node.js, socket.io, implement array delivery

... Many domestic and foreign materials say node.js, socket.io, can not pass arrays, the actual experiment, can be passed. The environment in this example: node.js 10.8, socket.io 2.1, express 4.16 server (node.js configuration file) var fileArr = []; fileArr.push("student01.jpg"); fileArr...


In-depth usage of Antd-Select component

... 一, Antd-Select provides several types The most basic version only provides pull-down function selector Pull-down selector with search function 可Multi-selection drop-down selector Searchable, multi-selectable, freely inputable tag drop-down selector (supports automatic word segmentation)...


Front-end paging plug-in laypage.js laypage.css

... paging plug-in use steps: import css/js plug-in resources into the js directory ---------------- ----------------------- <link rel="stylesheet" href="js/skin/laypage.css"> <script type="text/javascript" src="js/laypage.js"></script> htmlcode, showing paging component...


JS finds the largest subsequence and

... . This is a written test. Given an array, find the sum of the largest contiguous subsequence in the array. For example, in the array [-2, 6, -1, 5, 4, -7, 2, 3], and the largest subsequence is [6, -1, 5, 4], and their sum is 14. function search(arr) { var maxSum = arr[0], sum = arr[0];...


Four essential skills for web front-end engineers, do you have it?

... Web front-end development engineer is a particularly popular demand position in the Internet industry. As a qualified web front-end development engineer, in addition to excellent technology, it also needs a good ability to communicate with related departments. . In particular, the...


Java realizes multi-file upload to local server

... 博主 is currently working on an intranet project, and internal access to external data, but external access to internal data, which also causes possible files can not be uploaded, so bloggers take a different approach, Create a folder on the local server dedicated to storing uploaded data...


Advanced component knowledge (controlled components, stateless components, high-level components, pure components)

... component advanced knowledge controlled components In the original form, the value of input It is set this way. < input value = " mapbar_front " /> And in this case, we can enter any value into the input. However, in react, if we give an initial value for input, it will not change...


[JS design mode] Singleton mode

... singleton mode is just like its name. A constructor constructs an object and then constructs the object using this constructor. It is not a new object, it is still the upper one. Once the object, it is popular to say that the singleton pattern implements a constructor that only creates...


The burdock news release system summary

... After a month of struggle, I finally knocked the burdock off and on. During this period, there are mixed self-study, soft test, operation and maintenance of some things, as well as professional courses. Speaking of recent studies, every day is really full of explosions. Not much...