Tag:javascript

  • 11 + JavaScript features you may never use (summary)

    Time:2020-9-26

    important Most of the features described in this article have been suspended (or even not recommended). They are still common in many books, so they are worth learning. 1、 Comma operator Is the operator used to separate expressions and return the last expression in the chain. let oo = (1, 2, 3) console.log(oo) // 3 […]

  • Detailed explanation of three methods of JavaScript copying variables

    Time:2020-9-8

    This article mainly introduces three methods of JavaScript copying variables. The example code is introduced in detail, which has certain reference learning value for everyone’s study or work. Friends in need can refer to it When a variable is directly assigned to another variable, the system does not create a new variable, but assigns the […]

  • Front end interview daily 3 + 1 – day 140

    Time:2020-9-4

    Today’s knowledge points (September 3, 2019) – day 140 [HTML] what’s your understanding of HTML5’s keygen tag? What’s its function? Can transition in [CSS] CSS3 be used to transition opacity and display? [JS] talk about the function of encapsulating a tab with native JS [soft skills] do you know PHP, Java, python or go? What […]

  • Judging whether the contents of two objects are equal based on JavaScript

    Time:2020-8-27

    This article mainly introduces how to judge whether the contents of two objects are equal based on JavaScript. The example code is introduced in detail, which has certain reference learning value for everyone’s study or work. Friends in need can refer to it In ES6, there is a method to determine whether two objects are […]

  • Collation of minor problems easy to be ignored in JavaScript regular expression

    Time:2020-8-3

    1、 The special characters in bracket () do not need to be escaped. For example, [/], [.], [*], [?], [+] can directly match the corresponding characters \. *? +. Here are the test results: Therefore, / [\ D.] / is actually a regular expression that matches a numeric character or the character “.”, which is […]

  • Cross site scripting attack XSS

    Time:2020-8-2

    Introduction to XSS XSS is the abbreviation of cross site scripting. However, from the way of naming the initial letter, it should be named CSS, but it is the same name as cascading style sheets (CSS), so it is named XSS. XSS attack, generally refers to an attack way in which the attacker injects malicious […]

  • Vue Axios secondary packaging

    Time:2020-8-1

    import axios from ‘axios’;import QS from ‘qs’; //Environment switching// if (process.env.NODE_ENV === ‘development’) {// axios.defaults.baseURL = ‘http://172.16.70.100:9999/qd’;// } else if (process.env.NODE_ENV === ‘production’) {// axios.defaults.baseURL = ‘https://www.production.com’;// } axios.defaults.timeout = 5000;//HTTP request interceptoraxios.interceptors.request.use( config => { config.headers = { ‘Content-Type’:’application/x-www-form-urlencoded’ } return config; }, error => { return Promise.reject(error); }); //Response interceptor is exception handlingaxios.interceptors.response.use( […]

  • Nozi technology – using both Python 2 and python 3

    Time:2020-7-29

    Revision of the official website of Yezi E-sports https://www.xxe.io/ Brand newinstallYou can download versions of Python 2. X and python 3. X from the official website or Python tribe. Just pay attention to the system Install Python 2. X and python 3. X into different folders. For example, under windows, D: program files Python 2 […]

  • MySQL introduction lesson 1 creating, modifying and deleting tables

    Time:2020-7-28

    The original text is on my GitHub, welcome to subscribe. preface I want to learn database, so I have thisMysqlSeries. This series is mainly used for my studyMysqlI take it as learning notes.Instead of starting with the knowledge of database installation, user addition and permission allocation, it focuses onMysqlTable operation, data addition, deletion, modification and […]

  • MySQL introduction lesson 2 data types

    Time:2020-7-22

    The original text is on my GitHub, welcome to subscribe. preface This article continues to learn the first lesson of MySQL introduction “create table, change table, delete table”. To build an excellent table, it is very important to choose the appropriate data type. If the data type is not selected properly, it will not only […]

  • JavaScript implementation of modal dialog instance

    Time:2020-7-22

    This article mainly introduces the JavaScript implementation modal dialog example, the article through the example code introduction is very detailed, has the certain reference study value to everybody’s study or the work, needs the friend may refer to <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <title>dialogue</title> <style> *{ margin: 0; } .hide{ display: none; } […]

  • JavaScript array sorting applet implementation analysis

    Time:2020-7-11

    This article mainly introduces the JavaScript array sorting small program to achieve parsing, the article through the example code introduced in very detail, for everyone’s study or work has a certain reference learning value, need friends can refer to The sort() function of JavaScript array is sorted by string size, which can’t sort a group […]