Tag:Character string

  • JavaScript on the front end

    Time:2021-5-9

    JavaScript JavaScript is a scripting language, which is mainly composed of the following three parts: Core (ECMAScript) Document object model (DOM)   Document object model (integrating JS, CSS, HTML) Browser object model (BOM) Note: ES6 refers to ECMAScript 6. Introduction of JavaScript //First, write code in the script tag JS code //Second, introduce JS file […]

  • Application of regular expression

    Time:2021-5-9

    I’ve learned regular expressions many times, but after a while I forget them. I can’t remember when I want to use them. Today, I took time to do some regular collation, which is convenient for future review and reference. Basic knowledge: ^Upward tip When ^ is placed in [], it means reverse; Placed outside of […]

  • JS intercepts URL parameters

    Time:2021-5-9

    Copy and paste the code of this page to the HTML page and open it. Document account number: password: //demo.html?userName=yft&pwd=admin //If we can use this data in the second page, we can transfer data between two pages. // {userName:yft,pwd:admin} //Intercept URL string function params(url) { //We just need the string after the question mark var […]

  • Leetcode 680. Verify palindrome string II | Python

    Time:2021-5-9

    680. Verify palindrome string II Title Source: https://leetcode-cn.com/problems/valid-palindrome-ii subject Given a non empty string s, at most one character is deleted. Determine whether it can be a palindrome string. Example 1: Input: “ABA” Output: true Example 2: Input: “ABCA” Output: true Explanation: you can delete the C character. be careful: The string contains only lowercase […]

  • Format of string in Java

    Time:2021-5-8

    introduction The format of string is equivalent to toString () according to the specified format. Generally, there are two forms: //Returns a formatted string using the specified format string and parameters. public static String format(String format, Object… args) { return new Formatter().format(format, args).toString(); } //Returns a formatted string using the specified locale, format string, and […]

  • Format of string in Java

    Time:2021-5-8

    introduction The format of string is equivalent to toString () according to the specified format. Generally, there are two forms: //Returns a formatted string using the specified format string and parameters. public static String format(String format, Object… args) { return new Formatter().format(format, args).toString(); } //Returns a formatted string using the specified locale, format string, and […]

  • On leetcode-680

    Time:2021-5-8

    Topic introduction leetcode680 thinking This problem belongs to a simple type, the idea is not very complex, the use of double pointers, one point to the head of the string, one point to the tail, if the elements of the two pointers are equal, then each move one step to the middle, if not, you […]

  • A flutter rich text scheme with easy migration and high compatibility

    Time:2021-5-8

    Introduction:Flutter rich text evolution Author: leisure fish technology – Shinjuku background In the idle fish message system, rich text accounts for a very large proportion in the UI side. Recently, the news part is being fluttered as a whole. How to solve the problem of rich text on the side of flutter has become a […]

  • Introduction to Objective-C

    Time:2021-5-8

    1、 Introduction to Objective-C Objective-objective-c is a strict superset of C language any C language program can directly pass through the Objective-C compiler without modification, and it is completely legal to use C language code in Objective-C. Objective-C is described as a thin layer over C language, because the original intention of Objective-C is to […]

  • Basic data types of go language foundation

    Time:2021-5-7

    Go language has a wealth of data types, in addition to the basic integer, floating-point, Boolean, string, as well as array, slice, structure, function, map, channel and so on. The basic types of go language are similar to other languages. Basic data type integer Integers can be divided into the following two categories: int8, int16, […]

  • JavaScript — introduction method, syntax specification, variable, data type

    Time:2021-5-7

    1、 Introduction of JavaScript //1. Mode one //Write your JS code here //2. Mode 2 2、 JavaScript syntax specification //1. JavaScript is insensitive to line breaks, indentation, and spaces. PS: semicolon should be added at the end of each statement. Although semicolon is not necessary, in order to compress the program in the future, if […]

  • About using mock.js

    Time:2021-5-7

    At present, I’m working on a personal website. I’ve written half of it without data filling, and I don’t know what to write. I’ll learn about mockjs by the way. The official website mainly introduces the advantages of it, such as randomly generating various types of data and intercepting Ajax requests. Next, close to the […]