Some problems need to be fixed when using ueditor

Original address: Some problems need to be fixed when using ueditor 1. Adjust the order of pictures to be uploaded Modify: dialogs/image/image.js The last segment of line 718: uploader.on('uploadSuccess', function (file, ret) { var $file = $('#' + file.id); try { var responseText = (ret._raw || ret), ...

Posted by batman on Fri, 07 Feb 2020 10:13:12 -0800

What is Redux, why and how to use Redux

1. What is Redux Official explanation: Redux is a predictable state container for JavaScript apps. This means that Redux is a predictable state container for js applications 2. Why use Redux The following illustration shows how parent-child components communicate when Redux is not used and when Redux is used In the absence of Redux, if co ...

Posted by Zssz on Fri, 07 Feb 2020 08:15:44 -0800

Serialization operation of Django

Written in front Recently, I was trying to drum up wechat applets. I wanted to use Django as the back end to display data in wechat applets. When I write Django, I usually directly throw the QuerySet object to the template and then render it. But in the wechat applet, this object cannot be accepted. Y ...

Posted by JPark on Fri, 07 Feb 2020 07:01:23 -0800

getAttribute of null error when integrating echarts in VUE

error Error Scenario One: Error Tips: The above error occurred while running the Vue project because the graphics container for Echarts was initialized before it was generated. The code is as follows: // Initialize echarts instance based on prepared dom var bar_dv = document.getElementById('bar_dv'); let myChart = this.$echarts.init(bar_dv) So ...

Posted by ICEcoffee on Thu, 06 Feb 2020 21:01:53 -0800

JavaScript arrow function

  Arrow function is equivalent to Lambda expression or closure syntax of other languages. Arrow function is a simplified way to write ordinary functions. The syntax format of the arrow function is as follows: {pararnl, pararn2,..., pararnN) => {statements } Amount to: function (paraml, par ...

Posted by micklerlop on Thu, 06 Feb 2020 04:28:09 -0800

Functions in Js

Function currification The concept of corrilization: only a part of parameters is passed to the function to call it, and it returns a function to process the remaining parameters Take an example: var add = function(x) { return function(y) { return x + y; }; }; var increment = add(1); var addT ...

Posted by Kaboom on Thu, 06 Feb 2020 00:59:39 -0800

Getting started with javaScript

Getting started with javaScript Article directory Getting started with javaScript 1, Basic grammar What can I do Notes Identifier, literal quantity and variable naming specification data type Data type conversion, operator 2, Common methods of string and array Character method Array method 3, ...

Posted by mahaguru on Wed, 05 Feb 2020 04:37:29 -0800

JavaScript foundation 1 (overview, data types)

JavaScript language foundation Summary Brief introduction: Javascript (abbreviated as "JS") is famous as a scripting language for developing Web pages. It is the most popular scripting language in the world, but it is also used in many non browser environments. JavaScript is based on prot ...

Posted by sbourdon on Tue, 04 Feb 2020 08:08:30 -0800

Basic JavaScript learning

Origin of note learning: Top 100 projects of Duyi education Web front end Interaction: do an operation on the page, etc., and then it returns a feedback Binding events Note: an event can only be bound to one processing function, which is basically equivalent to being written in html between lines Namely ...

Posted by sbrinley on Tue, 04 Feb 2020 08:06:35 -0800

The use of conditional branch statements and loop statements in JavaScript, with simple code to achieve powerful functions

if()  else if()   else() alert() pop up warning box prompt() input box, OK: return input information; cancel: return null <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <script> var age=prompt('Please enter age!'); ...

Posted by pmeasham on Tue, 04 Feb 2020 07:55:12 -0800