Use ueditor in vue

Recently, I met the need to use rich text editor when I was working as a background management system. Finally, ueditor is selected. My project uses the scheme of Vue + vuex + Vue router + webpack + elementui to complete the framework construction, 1. Download the latest jsp version of UEditor official website. After the download and decompress ...

Posted on Thu, 09 Apr 2020 08:18:30 -0700 by msaspence

Introduction and basic usage of Promise

Asynchronous call asynchronous The execution environment of JavaScript is single thread. The so-called single thread refers to that there is only one thread in the JS engine responsible for interpreting and executing JavaScript code, that is, only one task can be completed at a time, and the next task can be executed only after this task is com ...

Posted on Wed, 08 Apr 2020 01:56:20 -0700 by Spreegem

HTML5 game development example

Development tool: vscode 1, Character puzzle The game is introduced: the jigsaw game divides a picture into several pieces and randomly scrambles them. When all the pieces are put back in place, the puzzle is finished. In the "game", click the slider to select the game difficult and easy, "easy" is a 3-row 3-column puzzle, i ...

Posted on Mon, 06 Apr 2020 03:55:20 -0700 by harman

Implementation of vue.js in non node environment simple shopping cart calculation function style please ignore

It's said that the two-way data binding of vue is easy to use. I feel that it's not easy to use when I make a shopping cart. The implementation is as follows: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script src="js/vue.js"></script> < ...

Posted on Sun, 05 Apr 2020 23:17:06 -0700 by webdogjcn

Vue2.0 series (VI) filter

vue2.0 has discarded the filter and needs to customize the filter for some common text formatting. Feel super easy to use!! Filters can be used in two places: Double curly bracket interpolation and v-bind expressions. Filters should be added at the end of JavaScript expressions, indicated by a pipe character. 1, Register global f ...

Posted on Sun, 05 Apr 2020 20:10:45 -0700 by boogybren

Implementation of websocket proxy mechanism by NodeJS

Modules used ws http http-proxy Mainly through htt proxy to achieve transit Start websocket service var WebSocketServer = require('ws').Server; var wss = new WebSocketServer({port: 6443}); console.log(6443); wss.on('connection', function connection(ws) { ws.on('message', function incoming(message) { console.lo ...

Posted on Sun, 05 Apr 2020 19:31:53 -0700 by miltonos

Second understand javascript drag upload file

Code Paste the code directly and copy it to the local. html file to achieve the above demonstration effect: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>drag file</title> <style type="text/css"> * { margin: 0; padding: 0; } .container { width: 60%; max-width: 600 ...

Posted on Sun, 05 Apr 2020 15:23:46 -0700 by bivaughn

Some small demo s in Vue Shop (background add-ons, foreground shopping carts, use of local storage)

demo. Background store, add a commodity <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <!-- Introduce vue.js --> <script src="js/vue.js"></script> </head> <body> <div id="app"></div> ...

Posted on Sun, 05 Apr 2020 15:16:10 -0700 by calavera

About the failure of a tag (hyperlink) of "div mode pull-down menu" of "sideslip navigation" in MUI framework?

About the failure of a tag (hyperlink) of "side sliding navigation" div mode pull-down menu in MUI framework? The sequence of screenshots and explanation pictures is as follows: Figure 1 Figure 2. Official screenshot Figure 3. Official screenshot Figure 4. Official screenshot Figure 5. Screensho ...

Posted on Sun, 05 Apr 2020 12:34:55 -0700 by rockintyler

nodejs+express+mongodb: a simple attempt to write api interface

1: Start mongodb service My mongoDB installation directory: E:\mongoDB\bin, version: 3.4.9 Open cmd - > e: (enter e disk) - > CD mongoDB / bin (enter bin folder under mongoDB) - > mongod.exe (start mongod first) - > Mongo (then mongo)   2: Start the visualization tool of mongoDB, adminMongo The installation directory of adminMongo ...

Posted on Sun, 05 Apr 2020 11:04:22 -0700 by studio805