uniApp knowledge and projects
Chapter 1 implementation of indexCateList
1, Implementation of background data
Home page paging list data to achieve simple cors processing // Home navigation page data
let indexCateList = require('./datas/indexCateList.json')
router.get('/getindexCateList', async (ctx, next) => {
// The generated H5 application has cross domain problems ...
Posted by jennatar on Sat, 18 Dec 2021 02:39:55 +0100
Event handler for 04 Vue
vue event handler
1.1 @click="handleClick"
In the event handling method without parentheses, vue will automatically pass the event object. You can get the event object in the event handling function, but you cannot pass custom parameters
<div id="box">
{{count}}
<br>
<button @click="handleClick">event proces ...
Posted by phprock on Sat, 18 Dec 2021 00:04:38 +0100
React learning summary
All Tips are my notes in OneNote. The copied ones are pictures. I'm too lazy to turn to text
Chapter 5: React routing
1, Relevant understanding
1.1 understanding of Spa
single page web application (SPA)The whole application has only one complete pageClicking the link in the page will not refresh the page, but only make a partial update of t ...
Posted by subalan on Sat, 18 Dec 2021 00:02:41 +0100
Five methods of JavaScript regular expressions
This paper introduces some common uses of writing regular expressions in JavaScript.
1. match()
match() is used with a string to check the match between the string and the regular expression , regex , with the regular expression as an argument.
grammar:
str.match(regex);
Method returns three possible values:
If the regular expression ...
Posted by freelancedeve on Fri, 17 Dec 2021 23:54:35 +0100
Basic course of ArcGIS development: Map and View of core concepts
Map and View of core concepts
Map is a container for managing layer and basemap references. View is used to display map layers and handle user interaction, pop-up windows, widgets and map locations. Generally speaking, it can be understood that map is responsible for the management of map data, while view is responsible for the display of map ...
Posted by arion279 on Fri, 17 Dec 2021 19:25:38 +0100
Using Vue JS build VS Code extension
Using Vue JS build VS Code extension
Visual Studio (VS) Code is one of the favorite code editors used by developers in their daily tasks. It is built with scalability in mind. To some extent, most of the core functions of VS Code are built as extensions. You can view the VS Code extension repository( https://github.com/microsoft/vscode/tree/ ...
Posted by osusano on Fri, 17 Dec 2021 17:32:57 +0100
Vue2.0 Vue props configuration
props configuration item
Create a student component (Student.vue)
<template>
<div>
<h2>Student information:{{name}}</h2>
<h2>Student gender:{{sex}}</h2>
<h2>Student age:{{age}}</h2>
</div>
</template>
<script>
export default{
name: ' ...
Posted by AngelGSD on Fri, 17 Dec 2021 17:21:00 +0100
Front end learning notes 1
Front end foundation js
2.1 let const var correlation
Reference answer:
var -- ES5 variable declaration method
When the variable is not assigned, the variable is undefined (also undefined when the declared variable is used)Scope - the scope of var is method scope; As long as it is defined in the method, the code after defining variables in ...
Posted by mystery_man on Fri, 17 Dec 2021 13:15:38 +0100
Wechat applet: wx:key details
Wechat applet: wx:key details
1, Code demonstration
Source code without wk: key:
//<!-- pages/mypage/mypage. Wxml -- > (wxml page structure file)
<switch wx:for = "{{numberArray}}" style='display : block;'>{{item}}</switch>
// pages/mypage/mypage.js (js script file)
Page({
/**
* Initial data of the page
*/
dat ...
Posted by Copyright on Fri, 17 Dec 2021 11:51:03 +0100
Summary of common methods of operating arrays
1.length() method
Gets the length of the array
let a = [1,2,3,4,5,6];
console.log(a.length); // 6 starts with 1
2.join() method, toString() method and toLocaleString() method
Array to string
let a = [1, 2, 3, 4, 5, 6];
console.log(a.join()); //1,2,3,4,5,6
console.log(a.join("?")); //1?2?3?4?5?6
3.reverse() method
Invert the order of arr ...
Posted by bilbot on Fri, 17 Dec 2021 10:57:55 +0100