Tag:Chuanshen

  • Wechat applet returns to the previous page to pass parameters and refresh process analysis

    Time:2021-6-22

    This article mainly introduces the wechat applet to return to the previous page to pass parameters and refresh the process of parsing. The sample code is introduced in great detail in this article, which has a certain reference learning value for everyone’s study or work. Friends in need can refer to it problem The onload […]

  • How to understand the result of FN1. Call. Call (FN2)

    Time:2021-6-21

    Problems recur There is a question function fn1(){ console.log(`fn1 ${this}`) } function fn2(){ console.log(`fn2 ${this}`) } fn1.call(fn2);// fn1 function fn2(){console.log(`fn2 ${this}`)} fn1.call.call(fn2);// fn2 [object Window] fn1.call.call.call.call(fn2);// fn2 [object Window] problem analysis aboutcallWe generally know these: purposeThe main function is to change the shape of the functionthisPoint, which can be used to implement inheritance Reference: function.call(thisArg, […]

  • JS toolkit written with TS

    Time:2021-4-11

    js-util-plus 1、 Introduction Common tool classes written with typescript Every time you write a project, you need to write some duplicate tool classes, so encapsulate some commonly used tool classes. 2、 How to use yarn add js-util-plus / npm install js-util-plus –dev import * as util from ‘js-util-plus’; 3、 Cases Because it’s written in TS, […]

  • [go] gocron source code reading – groutine and channel applied to signal acquisition

    Time:2021-3-2

    Directly using the go function name () can open a growtin. The channel can receive information and block if there is no dataChannel corresponds to the reference of the underlying data structure, and copy channel and function parameter are copy referencesWhen making, the second parameter is 1, which means that there is a cached channel […]

  • Summary and solutions of various problems in Vue project

    Time:2021-2-26

    1. How to transfer the list to the details page For example, when you go to the commodity details page from the commodity list page, you need to transfer a commodity ID; < router link: to = {path: ‘detail’, query: {ID: 1} > > go to the detail page < / router link > copy […]

  • Vue routing parameters

    Time:2021-2-25

    VueRouting parameters For the summary of routing parameters, we hope to include and correct the mistakes. recordVueTwo ways of routing parametersQuery and params Routing parameters——-this.$route.query < router link to = ‘/ home? Id = 123 & name = Zhangsan’ > routing parameters query < / router link > this.$route.query.id,You’ll get 123, and thisapiThere is no […]

  • Summary of interface test case ideas

    Time:2021-2-22

    Recently, in a project, I summarized the design ideas of interface test cases mentioned in eolink usage training, mainly involving two major directions. The first direction is independent interface testing; The second direction is multi-dimensional interface testing, which is achieved by constructing scenarios to enrich the interface test data. Use case design: direction 1: Case […]

  • How to use Axios baseurl

    Time:2021-1-31

    A series of articles: How to use Axios baseurl How to use Axios interceptor Every time API needs to fill in the domain name, you can set a baseurl, so that you can write less code. Moreover, when you change the domain name later, it is very useful when the production environment and development environment […]

  • Summary in Vue project, JS file gets this (Vue instance)

    Time:2021-1-25

    Two ways to get this in Vue 1. Pass this in the current Vue page in the form of parameter transfer, and JS file can receive this. 2. In main.js Throw out the Vue instance, and then introduce it where you need to use it. Hope to help you, welcome to correct!

  • Talking about the difference between # and $in mybatis from the distribution of Indian forces

    Time:2021-1-7

    brief introduction In the process of using mybatis, you may write SQL statements by yourself, and you need to pass in parameters to SQL statements. But in mybatis, there are two kinds of syntax for parameter passing, # {name} and ${name}. What’s the difference between them? Let’s have a look. for instance Recently, India is […]

  • JSP address bar to Chinese display garbled solution sharing

    Time:2020-12-31

    Test1.jsp page: Copy codeThe code is as follows: <%@ page language=”java” import=”java.util.*” pageEncoding=”utf-8″%><!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”><html>  <head>    <title>My JSP ‘test1.jsp’ starting page</title>  </head>  <body>    <a href=”test2.jsp?name=<%= java.net.URLEncoder . encode (“Wang Yunpeng”, “UTF-8”)% > “> test2.jsp</a>  </body></html> Page test2.jsp: Copy codeThe code is as follows: <%@ page language=”java” import=”java.util.*” pageEncoding=”utf-8″%><%    String name = […]