description setState updates state through a queue mechanism. When setState is executed, the state that needs to be updated will be merged and put into the status queue, instead of updating this.state immediately. The queue mechanism can upd...
there is a page. Because the js file is very large, it is slow to load this page for the first time. The web server is nginx, . I hope the page can load faster. How to configure it in nginx to make this page load faster or how to modify the page to m...
question: how to use the el-input box of elementUI to make the bound data display normally when the initial value is 0 ? when using elementUI, it is found that when el-input is of type number, the initial value of the binding is 0, but it is not d...
Code: <div class="container"> <div class="left"> <div class="left-con"> <div class="hidden-scroll"> <div class="personal"> ...
is there any way to prevent the child element from being compressed when the parent element reduces the width when the child element is not set to fix width and height (stretched by padding)? setting height and width: I am a child element No high w...
<div className={ video }> <div className={ allTasks fl } style = { this.state.current === 0 ? changeColor : changeColor02 ...
is going to be modified based on a set of websites written in css3 to support IE8. The css file is relatively large, and it takes time to modify it manually. Is there such a tool that can check the input css file and output the style code that css2 does ...
wrote a custom video playback control that you want to call out on the mobile by clicking on the video. But the video tag does not respond to this click event. how do ordinary video players call out playback controls? ...
The redrawing cost of table is higher than that of div elements, so modern layouts have abandoned table layouts unless tables are needed. question: so is this redrawing the same cost as using a table layout directly? .father{ display:table; } .fat...
A drop-down box supports multiple selections, supporting both and and or queries brand = Volvo and brand = Saab brand = Volvo or brand = Saab Is there any good way to display the page? Is it like this down there? <html> <bod...
What does this approximate color selection mean? Why should it be approximately selected when it is divided into four? ...
I made a Vue.js component: nav.js Vue.component( nav-ul-li , { props:["url"], template: <li> <a :href="url"><slot>< slot>< a> < li> }) wrote a document: <!DOCTYPE html&...
as shown in the figure, I want to add a line of text and pictures to the multi-line text box, but in Mini Program, textarea seems to be the highest level by default. Setting z-index does not work, and textarea will always overwrite this line of text ...
as shown in the figure: when the button button is clicked, the scroll bar on the right scrolls down the specified distance ...
lastZero:function (num) { var reg = 0+$ ; return reg.test(num) } I wrote a rule, but I still think that the rule is just to determine whether the last number is 0 . what I want is some data returned in the background. If the end of these num...
Mini Program is developed by Wechat developer tool. Sending an API request token to the backend will return "Token creation requests cannot be accessed from a browser. ", which cannot be obtained on the browser. You can only upload a preview of the code...
problem description as shown in the picture, the upper conference room is a scroll-view, and the table below is also scroll-view,. So how to achieve the linkage of the two scroll-view? when the upper conference room bar scrolls 20rpx to the right, t...
how does js in array find out the most repeated elements in the array (try to use syntax above es6, be concise) let ary = [ , , , , , , , , ]; add: 2018-7-17 10:42:53 in fact, I started with an exercise on arrays wi...
I want to do a micro-level chat system by myself. I usually work as a background developer. I want to sum up and practice what the project team has learned through this small project, and at the same time actively understand and learn some popular new te...
prompts you to report an error when verifying whether it is a Wechat browser: : Global routing judgment Code: router.beforeEach((to,from,next)=>{ title const title = to.meta && to.meta.title; if (title) { document.title =...
https: codepen.io wanroulin . ...
my understanding is to add a folder tmp and then git rm-- cached tmp-r will no longer track this folder but. My gitkraken will still show the changes to this folder (there are several new files in stage status, but after execution, the new files becom...
wants to be a Mini Program platform for merchants to move in. wants to use a set of server codes to provide data to multiple Mini Program. then these Mini Program all get data from one domain name . so: searched the Internet: how many Mini Program c...
Wechat Subscription account, because there is no template message plug-in, so, I would like to ask the gods, how should I write, can let Subscription account take the initiative to send messages to users? Developer mode ...
the business scenario is shown in the figure, and the current date and time is recorded after clicking. How to achieve it? < hr > by the way, it s dynamic, like an electronic watch. ...