Tag:Arrow

  • Learn how Babel works

    Time:2021-6-9

    Link to the original text:http://axuebin.com/articles/fe-solution/babel/first.htmlFor reprint, please contact preface BabelFor the front-end developers, it should be very familiar, daily development is basically inseparable from it. It’s 9102. We can use it skillfullyes2015+The grammar of English. But for the browser, it may not be familiar with them, we have to let the browser understand them, which […]

  • The type of Android input is date to hide the drop-down arrow

    Time:2021-5-29

    Recently, there is a requirement to have a date selector, and then the style is custom. The arrow will be hidden automatically on IOS, but Android won’t, as shown in the figure below And then a variety of online search is summarized as follows input[type=”date”]::-webkit-inner-spin-button, input[type=”date”]::-webkit-outer-spin-button, input[type=”date”]::-webkit-calendar-picker-indicator{ visibility: hidden;-webkit-appearance: none;display: none;} However, there is no […]

  • Points needing attention in arrow function

    Time:2021-4-30

    1、 Introduction I believe you are familiar with ES6 arrow function, and we will often use it in the process of daily development, but what are the points of arrow function that we should pay attention to? 2、 Some points for attention in using arrow function 1. This object in the function body is the […]

  • ES6 series four: function extension

    Time:2021-4-27

    The rookie official account of “Code tailor” provides technical information and a series of basic articles for front-end developers. WeChat pays close attention to the public address of “little and mountain rookie”, and gets the latest articles in time. preface Before learning, we would like to tell you that this article is an introduction to […]

  • Who does this represent in JavaScript( Where does this point to?)

    Time:2021-4-26

    This is a special keyword in many programming languages, such as this in Java and this in JavaScript. So, what are the features and usage of this in JavaScript? How is it defined? Let’s take a look at the definition of this in ECMAScript Standard Specification 「The this keyword evaluates to the value of the […]

  • Tkinter (17) scroll bar

    Time:2021-4-21

    Creation of scroll bar and its options The scroll bar consists of slider, arrow1, arrow2 and trough. The size and position of the slider represent the proportion and position of the visible part in the whole content (0.0 ~ 1.0) import tkinter as tk root = tk.Tk() parent_widget = … scroll_bar = tk.Scrollbar(parent_widget, option, …) […]

  • Using styled component

    Time:2021-4-17

    Conclusion: The basic parent-child selector of CSS can be used internally. The properties can be passed through the props of the button, and the corresponding CSS code can be returned through the arrow function You can write out the basic default style, and then inherit and reuse it. Code appreciation import styled, { css } […]

  • The difference between “arrow function” and = > in trust

    Time:2021-4-15

    BeginnersrustI’m sure you’ll be punished like merustThe complicated grammar shocked me The following code looks likejavaandJavaScriptThe combination of use std::io::prelude::*; use std::fs::OpenOptions; fn main() -> std::io::Result<()> { let mut file = OpenOptions::new() .append(true).open(“D:\\text.txt”)?; file.write(b” APPEND WORD”)?; Ok(()) } fn main() { let mut v = vec![1, 2, 4, 8]; println!(“{}”, match v.get(0) { Some(value) => […]

  • Axios (XHR) and fetch

    Time:2021-4-13

    Axios (search arrow function) import axios from “axios”; search = () => { axios.get(`https://api.github.com/search/users?q=${keyWord}`).then( response => { console.log(‘successs’); console.log(response.data); }, error => { console.log(‘errors’); console.log(error); }, ); } fetch search = () => { //Unoptimized version fetch(`https://api.github.com/search/users?q=${keyWord}`).then( response => { console.log(‘successs’); console.log(response); //Continue to return a promise object return response.json(); } ). then (response = […]

  • On the analysis of this point in ordinary function and arrow function

    Time:2021-3-29

    About the content This of ordinary function This of arrow function Ordinary function 1. Conclusion Let’s start with the conclusion,The direction of this of ordinary function cannot be determined when the function is defined. Only when the function is executed can we determine who this points to. In fact, this finally points to the object […]

  • Several easy ways to handle ‘this’ pointing in JS

    Time:2021-3-8

    Author: Dmitri pavlutinSource: Dmitri pavlutinTranslator: Xiaozhi Like again, form a habit this paperGitHubhttps://github.com/qq44924588… I’ve collected more categories of previous highly praised articles and sorted out a lot of my documents and tutorial materials. Welcome star and perfect, you can refer to the interview site review, I hope we have something together. Everyone said that there […]

  • Analysis of Redux Middleware

    Time:2021-2-20

    Redux mainly includes five methods createStore combineReducers bindActionCreators applyMiddleware compose Today, I’m going to talk about itapplyMiddlewareandcomposeThere are two ways. The concept of middleware is introduced into redux. Yes, if you have used express or koa, you will not be unfamiliar with middleware. We know that in koa, it is the middleware that connects the […]