-
Benchmarks is a directory in many github projects. What on earth is it for?
there is a benchmarks directory in some open source projects, such as vue , which is very popular now. The literal translation of benchmark means benchmark test. It seems that some functional performance tests can be done. given that there is a test di...
-
When packing under nuxt, I want to tell whether I am running npm run dev or build or the newly created script command. How can I tell the difference?
the packaged scripts are generated dynamically by nuxt. How to mark a global variable so that your business code can tell which command it is? (for example, the interface domain names of different commands are different) ...
-
Is it okay to rely on react-create-app / vue-cli?
although it is said that the use of webpack webpack-dev-server, and then with babel transcoding, coupled with a variety of loaders and plugins can really be better, targeted to build a development environment.
but these configurations take too much ti...
-
How to register custom events for ordinary dom tags in React
if the title is feasible in vue (pay special attention to native tags rather than custom components)
syl
chrome
react
how do I tag normal dom in React register Custom event
...
-
Does vue have a method similar to react's this.props.children to get component child elements?
write a component by yourself: < len-carousel > when using:
<len-carousel>
<div v-for="(item,index) in 4" :key="index">
{{item}}
< div>
< len-carousel>
how do I get the chil...
-
How can regularities be replaced in batches according to the mapping relationship?
such as
var map = {
a: 1,
b :2,
c :3
}
As a matter of fact, there is no map object for . I hope this map is a regular expression. How to write to realize the change from abc to 123 and how to find this regular expression with replac...
-
How to match part of the code block through webpack packaging?
eg:
ifisProd{
do something for prods
}else{
do something for others
}
webpack
do something for prods
There is a corresponding plug-in in gulp, which is via regular matching Filter. No corresponding plug-ins have been found i...
-
The distance between two sets of parallel lines is calculated, the point on each segment is known, and the angle with the coordinate system is 15 degrees.
...
-
How to use MathJax?? installed through NPM in a project
my index.html, in the react project introduces through cdn.
:
:
{}react:
:
so I want to install MathJax, through npm but don t know how to use it. Has any god ever used this thing? Ask for detailed instructions on how to use it! Thank you so mu...
-
Find the oblique angle of the tangent of any point on the quadratic Bessel curve
given x coordinates, want to know the tilt angle of this blue line
Real demand: draw words close to the curve and find a train of thought
...
-
What is the difference between react and vue in data binding?
recently learned about the difference between react and vue, and read some blog posts, which roughly means: both react and vue are unidirectional data streams, but vue has bidirectional data binding, react does not. The two-way data binding I understand...
-
You can drag and drop the project source code that generates the background management system.
requirements: you can configure the background interface, configure the interaction mode, and drag and drop a parent system of the generation interface if you do not know, please recommend a portal or provide project ideas, or provide development ideas...
-
Why can vue assign values to data directly, but react can't modify the variables of state?
for complex data types, such as arrays or objects, can be used in Vue:
data() {
return {
obj: dataObject
}
}
method: {
modify: function(newObj) {
this.obj = newObj
}
}
but react should use:
this.setState({
obj: Ob...
-
On the question of whether the data is really obtained in the parent component or in the child component
1. If you now have one parent component and three child components. The data displayed by each component is different, and now has two ways to get the data. the first is to get all the data in the parent component and pass it to each child component us...
-
Webpack installs the eslint plug-in, and there is also an eslint plug-in in vscode. What's the difference?
there are other things, such as prettier, etc., so many plug-ins are used for formatting or syntax specification checking, etc. What s the difference? if it s all installed, will there be no conflict between configurations?
in addition, installed ...
-
How to make the home page of the react/vue project show only the domain name?
generally, react and vue projects will be configured with routing. The home page is usually main , that is, visit http: www.xx.com -sharp main to visit the home page, but the actual project requires that the content of the home page be displayed wh...
-
When building a front-end project, how to choose from vue, react and Angular about technology selection
I found some information on the Internet, but how to choose in real projects
I checked some relevant information, this is some simple comparison, but I want to know how to choose in the real project?
in terms of performance, when a component changes...
-
What type of value is returned by setTimeout in ts, isn't it Timer?
let timeoutId: Timer = setTimeout(() => {
console.log( ok );
}, 250);
vscode prompts that there is no Timer type, but if I replace Timer with number, he prompts me that the Timer type returned by setTimeout cannot be assigned to the number type...
-
How do you deal with uploading pictures in a general cms system?
1. The pictures uploaded by cms are stored in Qiniu, converted to base64, and stored in the database. what are the advantages and disadvantages of each of these two approaches? ...
-
How to realize the keep-alive function of vue with react
has been using react, to watch vue recently. It feels so easy to use keep-alive. before react data are managed by redux. When you get the data, you judge whether the length of the data is 0. If the length of the data is 0, you can get it if it is 0, an...