JS string method
catalogue
1,indexof()
2,charAt()
3,concat()
4,substring()
5,substr()
6,slice()
7,replace()
8,replaceAll()
9,split()
10,trim()
11,match()
1,indexof()
indexOf()
Method returns the
String
The index of the specified value that first appears in the object, from
fromIndex
Search at
Cable. Returns if the value is not ...
Added by waygood on Mon, 14 Feb 2022 14:54:04 +0200
Building a JavaScript single page application without a framework
Build a JavaScript Single Page App Without a Framework - SitePoint
The front frame is great. As your projects evolve, they can be structured in a way that allows you to understand most of the complexity of your application and help you organize it in a single page.
However, there is also a downside: these frameworks incur a certain degree of ...
Added by eddedwards on Mon, 14 Feb 2022 14:31:39 +0200
element ui upload picture usage
Through slot You can import custom upload button types and text prompts. You can limit the number of uploaded files and define the behavior when the limit is exceeded by setting limit and on-exceed ed. You can prevent file removal by setting before remove.
<el-upload
class="upload-demo"
action="https://jsonplaceholder.typicode.com/pos ...
Added by davidp on Mon, 14 Feb 2022 14:18:45 +0200
js advanced -h5 new features
New label
Represents a block
Represents an article. Such as articles, comments, posts and blogs
Represents a header
Represents a footer
Indicates navigation
Represents the sidebar. Such as the sidebar of the article
Indicates media content grouping (less used) ...
Added by IceHawk on Mon, 14 Feb 2022 14:07:14 +0200
BOM and DOM operations
BOM and DOM operations
What are BOM and DOM
BOM refers to the object model of the browsing area, which enables js to operate the browser through it DOM refers to the document object model, which enables js to operate the front-end page (that is, all elements of HTML document)
BOM needs to master operation
window.open() - Open a n ...
Added by chris davies on Mon, 14 Feb 2022 13:06:18 +0200
[Vue technology stack development foundation guide]
Vue front end development framework
Vue cli project scaffold is based on Vue JS for rapid development of a complete system
Document address https://cli.vuejs.org/zh/
Install node js https://nodejs.org/zh-cn/Install Vue cli scaffold
npm install -g @vue/cli
Create a vue project
Execute command vue create hello-world(Project name) Quickly ...
Added by Ryanz on Mon, 14 Feb 2022 11:38:58 +0200
Summary of common methods of jQuery
$.grep()
$.grep( array, function(elementOfArray, indexInArray) [, invert ] )
Function: find the array elements that meet the filter function:
<script src="js/jquery1.42.min.js"></script> <script type="text/javascript"> $(function () { var arr = [23,45,5,1,4,67,8,100,-2]; var arrGrep = $.grep( ...
Added by Cong on Mon, 14 Feb 2022 07:00:02 +0200
Express - based on node web application development framework based on JS platform
1. Introduction to express
Express is based on node JS platform, a fast, open and minimalist Web development framework (a third-party package on npm). Its function is similar to that of node JS is similar to the built-in http module, which is specially used to create a Web server. The built-in http module is very complex but inefficient; ...
Added by KoshNaranek on Mon, 14 Feb 2022 06:40:35 +0200
jq Basics
Review jq today
jQuery concept:
jQuery is a fast and concise JavaScript library, which is an encapsulated specific collection (Methods and functions)
Learning the essence of jQuery: learning to call these functions (Methods).
Simple understanding: it is a js file that encapsulates our native js code and stores it in it. In this way, we can ...
Added by kampbell411 on Mon, 14 Feb 2022 05:52:21 +0200
Intensive reading of Vue lit source code
vue-lit be based on lit-html + @vue/reactivity The template engine is implemented in only 70 lines of code Vue Composition API , used to develop web component s.summary<my-component></my-component>
<script type="module">
import {
defineComponent,
reactive,
html,
onMounted,
onUpdated,
onUnmounted
} ...
Added by ams53 on Mon, 14 Feb 2022 03:22:30 +0200