0x00: CauseFirst of all, I learned the original intention of JavaScript, I am currently engaged in the security industry, can now tap some of the basic XSS vulnerabilities, but want to understand the XSS, need to have javascript basis, such as
One: Grammar rulesThe 1.RegExp constructor creates a regular expression object that matches the text to a pattern .2.REGEXP is made up of two parts①pattern(正则表达式的文本) ② flags( g:Global match; Find all matches, not stop after first
Use the link as follows. After clicking in Chrome, the behavior is expected, but a new tag card will be opened under IE (according to reference, Firefox has the same problem).testAfter looking for information, found to be resolved as follows.Block
Introduction:Front-end code is a direct burst in the browser, many web attacks are directly debug business logic to find vulnerabilities to attack, in addition to some like "for nothing" molecular violence to steal other people's web page simple
JavaScript objectsAll things in JavaScript are objects: strings, numbers, arrays, functions ...In addition, JavaScript allows custom objects to be customized.All things are objectsJavaScript provides multiple built-in objects, such as String, Date,
I. Type of Object1.1 How to create ①new keyword: var person = new Oject ();② Given direct volume:var person = {name: ' Zhangsan ', age : ' 18 '}1.2. Access mode: One for the object Point property name "Person.name" or use the brackets "person["
To stitch strings in JavaScript, you can concatenate multiple strings with the ' + ' sign: In ECMAscript6, there is another way of string concatenation: That is, you can use ${} to stitch up the values of two variables, where the entire string
JavaScript converts a numeric array into a function array (each function pops up the corresponding number)varArrnum = [2,3,4,5,6,10,7];varArrfun = [];functionChange (arr) {varFun =function(val) {return function(){ returnVal; }; }
Less than 200 lines of JavaScript code to implement the Rich Text Editor method, 200 lines of javascript
Some time ago, I was searching for some information about the Rich Text Editor and found this project named Pell, which is a WYSIWYG text editor.
JS Date object and get system current time details
This article mainly introduces the JS Date object and obtains the current time of the system. If you need it, you can refer to it and hope to help you.
I. Date object
One object every day. Let's
Simple Map implementation in javascript
This article describes how to use javascript to implement a simple Map. You can obtain, Judge, delete, and add a map.
The Code is as follows:
/*
* MAP object to implement the MAP function
*
* Interface:
*
React Native uses the sample code of Fetch to send network requests, reactfetch
HTTP requests are usually used in projects to access the network. HTTP (HTTPS) requests are generally divided into "GET", "PUT", "POST", and "DELETE ", if not specified,
Calculation attribute usage in vue and vue instance method example, vue instance
This article describes how to use vue computing attributes and how to use vue instances:
Calculation attribute
Expressions in templates are very convenient, but they
Sample Code for angularjs to implement timeline effects, and angularjs sample code
1. Import package
Introduce the angular-timeline package.
: Angular-timeline.zip
Introduce in index.html
If it is referenced in app. js, it will be ineffective if it
HTML Tag, simple induction, html Tag Induction
List tag
Ordered list:
Unordered list:
// attribute: font-weight font width
Table:
// td column of the tr row
HTML5 new tag
1. // draw a tag similar to a photo wall
Eg:
orange /
Three Tips for improving web page performance and improving web page skills1. Set the display attributeFirst, set the element to display:None(Needs to be re-painted once), Then perform 100 operations on the node, and then restore the display (one re-
Talking about node. js database Exception Handling, talking about node. js Exception Handling
This article describes how to handle node. js database exceptions:
NodeJs version: 4.4.4
Database Link error
It is the most troublesome to use nodejs to
[Original dry goods] the root cause of garbled web pages and the root cause of dry goods
First look at the code segment:
webpage encoding
In the HTML code, specifies that the webpage is encoded as UTF-8.Web Code involves many knowledge
How to Use quill-editor with style editor in the Vue project, vuequill-editor
By default, vue-quill-editor inserts an image directly into base64 and then into the content. If the image is large, the rich text content will be large.
Insert a video
Details about Angular2 form-Template-Driven Forms ),
In web development, form estimation is the most commonly used one, and it is also the most troublesome and prone to problems. In a slightly more complex application, in addition to using form
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.