Dictionary tree implementation of high-performance shielded word algorithm (principle and Implementation)
Some time ago, I saw the violent traversal method used by the company's games to realize the shielding word algorithm of the game. Later, I found that the efficiency of this algorithm is relatively low. Therefore, I learned about the trie tree on the Internet, so now I use the trie tree to realize a shielding word algorithm.
Construction pri ...
Posted by vikela on Tue, 21 Sep 2021 04:08:02 -0700
javascript advanced programming collection type reference
#javascript advanced programming (VI) collection type reference
1, Object
How to explicitly create an object instance (1) new + constructor let person = new People();
person.name = "abc";
person.age = 27;
(2) Object literal let person = {
name: 'abc',
age: 28
}
tips: a. Numeric property names are automatically converted to strings b. Wh ...
Posted by lucie on Tue, 21 Sep 2021 02:34:07 -0700
js array method
1.join()
Receives a parameter as a delimiter, defaults to a comma, returns a string separated by each item of the array
var arr = [1,2,3,]
console.log(arr.join(".")) //1.2.3
2.split()
Receives one or two parameters, the first representing a "separator" or a "regular expression" separated from the position specified by ...
Posted by sanstenarios on Mon, 20 Sep 2021 20:32:16 -0700
JavaScript object-oriented Foundation
If you want to see the content of basic grammar, please move on JavaScript basic syntax
1, Custom object
01. Concept of object
In JavaScript, an object is an unordered collection of related properties and methodsAll things are objects, such as strings, values, arrays, functions, etcObjects are composed of properties and methods
Attr ...
Posted by lanbor on Mon, 20 Sep 2021 19:08:12 -0700
tailwindcss official website Customization: plug-ins, presets (presets, combined configuration)
tailwindcss official website (8) Customization: plug-ins, presets (presets, combined configuration)
Official website: Installation - Tailwind CSS Chinese document
Tailwind is a framework for building customized user interfaces, so customization is considered from the beginning of design.!important
This property allows the browser ...
Posted by Atanu on Mon, 20 Sep 2021 16:44:12 -0700
Vue3 Official Network - Deep component props (one-way data flow, validation), non-Prop Attribute s (inheritance prohibited), $attrs, custom events (use v-model, emits on components)
Vue3 Official Web-In-depth Components (2) props (one-way data flow, validation), Attribute s (inheritance prohibited) for non-Prop, $attrs, custom events (use v-model, emits on components)
Summary:
supplement
Vue (pronunciation/vju/, similar to view) is a progressive framework for building user interfaces. Unlike other large fram ...
Posted by rhathid on Mon, 20 Sep 2021 16:15:28 -0700
Docking example of mock simulation data and back-end interface in VUE development environment
In the previous front-end development, the front-end relies heavily on the back-end, so we must wait for the back-end interface to be developed before we can continue to develop. Using mock, the front and back end development can be carried out asynchronously without affecting each other. Mock.js is an analog data generator. It can intercept aj ...
Posted by samyl on Mon, 20 Sep 2021 14:51:27 -0700
Constructors, prototypes, and prototype chains
Constructor
Constructor returns a reference to the constructor when the instance object was created. The value of this property is a reference to the function itself, not a string containing the function name.
function Parent(){
this.age = age
}
var p = new Parent(50)
p.constructor === Parent // true
p.constructor === Object // false
...
Posted by mike16889 on Mon, 20 Sep 2021 11:28:13 -0700
Vue basic instruction (text, binding event, interpretation, loop)
Vue instruction
v-text instruction
Set the text value of the label (textContent)
v-text < p v-text = "data distortion" ></p> <!DOCTYPE html>
<html>
<head>
<title></title>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
< ...
Posted by webguync on Mon, 20 Sep 2021 09:41:45 -0700
Basic structure of JavaScript
Rotation chart
It is often located on the home page and used as a large picture for activity promotion. It can be played automatically by clicking the left and right switch button, or by clicking the small dot on the picture
Tab Toggle
It is used to click different labels or titles to display different contents
Form Validation ...
Posted by fangorn on Mon, 20 Sep 2021 09:37:22 -0700