thinkphp+jquery to achieve two-level comment reply effect

This is not an infinite level comment, but only two levels. It's easy to implement. The parent id of all comments is the id of the corresponding first level comment. When adding a comment, add it under the corresponding comment, and put the latest comment in the front with prepend()     Database design (I don't really use the database here. In ...

Posted on Wed, 25 Mar 2020 07:42:15 -0700 by shadownet

thinkphp+jquery to achieve two-level comment reply effect

This is not an infinite level comment, but only two levels. It's easy to implement. The parent id of all comments is the id of the corresponding first level comment. When adding a comment, add it under the corresponding comment, and put the latest comment in the front with prepend()     Database design (I don't really use the database here. In ...

Posted on Wed, 25 Mar 2020 07:43:17 -0700 by prometheuzz

React router prompts when routing is switched

React router version ^ 5.1.2 When the content being edited is not saved, there is a routing switch. At this time, you need to give some prompts, and the user controls whether to jump. During the route management of react router, the Prompt component can be used to realize this function. The message attribute can accept a function and Prompt whe ...

Posted on Wed, 25 Mar 2020 07:07:50 -0700 by sevenfive

Vue Principle Interpretation: Do not let transitions/animations become transition components of the dashboard

Animation has always been a tangled point in the front, which is easy to ignore but important. Writing a pleasant and natural interactive experience really adds color to the project. After all, it is easy to feel, so it is necessary to explore the implementation principle of the transition component of vue.The animation implementation of the tr ...

Posted on Tue, 24 Mar 2020 23:52:33 -0700 by flaab

EasyUI tree table displaying Json data

Use the TreeGrid component of EasyUI to format and display the Json data. First, read in the Json file, turn it into a Map object, recurse each Map, and determine whether its value is the basic type or Map. If the base type, the attribute node. If Map is an object, it needs to be traversed again. 1.Map resolves Tree objects Tree object public ...

Posted on Sun, 22 Mar 2020 08:34:46 -0700 by salim

Why does the DEBUG = False setting fail django static file access?

I'm using Django as my primary building application.So far, everything has been fine - specifying database settings, static directories for configuration, URL s, views, and so on.But when I wanted to present my beautiful custom 404.html and 500.html pages, the trouble started to creep in. I read the documentation on custom error handling, s ...

Posted on Fri, 20 Mar 2020 21:16:04 -0700 by compphenom

JavaScript Object Foundation

Basic forms of JavaScript objects, how objects are created, constructors, wrapper classes, and so on Format of object Basic Format The object is wrapped with a {} and the internal properties are declared as key-value pairs Example var teacher = { name: "pgjett", age: "22", teach: function () { console.log("I teach java ...

Posted on Thu, 19 Mar 2020 18:46:33 -0700 by jimmygee

Three ways to transfer values between components

There are three ways to transfer values from vue components: parent to child, child to parent, and non parent-child (same level) components Refer to a sentence on the official website: the relationship between parent and child components can be summarized as prop passing down and event passing up The parent component sends data to the child com ...

Posted on Thu, 19 Mar 2020 08:32:43 -0700 by catchy

JavaScript precompilation and scoping

The JavaScript precompilation process and scoping analysis steps are an important part of JS learning and can help us understand the order in which code is executed and the concept of closures. precompile JavaScript Execution Steps Check for grammatical errors throughout the text - > precompilation - > explain execution Implicit glo ...

Posted on Tue, 17 Mar 2020 18:49:30 -0700 by Emir

The basic concept of function and function encapsulation

Basic concept of function // What is a function: // Code block for fixed functions // Function is a tool, a tool to realize function // Function is to realize the so-called function through the code in it // Features of the function: // Encapsulation: write the required c ...

Posted on Mon, 16 Mar 2020 06:41:51 -0700 by shivam0101