Category:Development Tool

  • For loop traversal in JavaScript

    Time:2021-3-7

    General for loop traversal Define an array: Using the normal for loop traversal Can be used to traverse arrays Foreach traversal The traversal code is as follows This structure is more concise, but you can’t use break and other statements to jump out of traversal until all elements are passed to the calling function, but […]

  • Update of IntelliJ idea 16 Preview

    Time:2021-3-7

    debugger Groovy expression Starting with version 16, evaluate expression and watches can be debugged with shorter and more expressive groovy expressions, which were previously only used for groovy code. thread In the past, crossing one thread meant restoring all the other threads, while version 16 only needed to restore the current thread. Source mismatch detection […]

  • Talk about git Series 1: git introduction and installation

    Time:2021-3-7

    1、 Version control 1. What is version control system A standard version control system (VCS) usually needs the following functions:Ability to create a repository for storing codeFacilitate code distribution to team members during collaborative developmentRecord the content, time and reason of each code modificationAble to create branches, which can be developed according to different scenariosAbility […]

  • Deep thinking of performance optimization caused by try catch

    Time:2021-3-6

    The key code is disassembled as shown in the figure below (the irrelevant part has been omitted) At first I thought it might be thisgetRowDataItemNumberFormatSome of the methods in the function are too slow to executeformatData.replacereachunescape(abandoned, officially recommended)decodeURIOrdecodeURIComponentInstead, I suspect that none of these methods is responsible for the slow running of the function. In […]

  • Recommend a good vscode plug-in: a vscode plug-in that can give store definition information in vuex

    Time:2021-3-6

    VueThis$Store Problems to be solved When using vuex to manage the state of your application, because there are too many states, you have to open the vuex definition file every time to copy the function name or state name at the time of definition for correctness, which wastes a lot of time. In order to […]

  • How to write Maven parent POM file

    Time:2021-3-6

    Parent POM defines your project model, including construction method, project environment, project dependency, output Javadoc, release source code and so on. How to write a parent POM is a ready-made and being used in some projectsClick to view GitHub source code peaceful-basic-platform A best global parent pom file , you can use it in jar […]

  • Common problems in using IntelliJ idea and webstorm on Mac OS X

    Time:2021-3-6

    1. Chinese punctuation cannot be displayed At present, Oracle official JDK 8u51 can use Chinese punctuation normally, and other jdk8 versions can’t use Chinese punctuation normally, even to 8u74 version. 2. Switch JDK started by ide Press the shortcut keyCMD+Shift+A, inputjdk, selectSwitch IDE boot JDK…That is to switch between JDK installed in the system and […]

  • Using docker compose to build registry image management platform and use configuration

    Time:2021-3-6

    Introduction to docker registry Docker hub is an image warehouse officially provided by docker to manage public images. We can pull the images we want from it or push our own images. But sometimes, when you can’t access the Internet or don’t want to push your own image to the public network, the docker registry […]

  • Get the submitted content of GIT

    Time:2021-3-6

    QT Jun recently work need to release a software, but encountered some problems. Software is requiredWrite Version DescriptionHowever, the content of version modification is in every commit of GIT. Manual copy is obviously too time-consuming and not worth it.    so I checked the manual and wrote this immediatelyExtract commit content commandSimple and convenient to […]

  • Samesite property of cookie

    Time:2021-3-5

    The samesite property of cookie is used to restrict the third-party cookie, so as to reduce the security risk。 It can set three values: Strict Lax None 1.Strict Strict is the most strict,No third-party cookies are allowed. Cookies will not be sent under any circumstances when cross sites. In other words,Only if the URL of […]

  • Vscode plug-in recommendation (Vue, small program, webapp fried chicken easy to use)

    Time:2021-3-5

    Auto close tag – auto close HTML tag Auto rename tag – when modifying HTML tags, automatically modify the matching tags Background – background Beautiful – Javascript, JSON, CSS, sass, HTML code highlighting Beautify CSS / sass / SCSS / less – Code highlight CSS peek – automatically find CSS files Debugger for chrome – […]

  • Flash connecting MySQL under Windows Environment

    Time:2021-3-5

    1、 Questions Today, when using the Sqlalchemy Library of flash to configure and connect to MySQL, we encountered a small problem, that is, when all package environments are correctly compiled, the access to debug fails. The exception is as follows: ImportError: No module named MySQLdb 2、 Solutions There are always some wonderful things in Windows […]