recently, a problem has been found in the project of rendering all ends of the server with nuxt.js. For example, there are multiple concurrent requests on a page, and as long as there is a problem with one request, the whole page will not work. When rend...
I now pass the data to the component through context of StaticRouter , and then in the componentWillMount of the component, get staticContext through this.props . but when you refresh the page, you will see that the page is filled with data on...
1 how to add unit tests and E2E tests to an existing project (are there any other tests) a. How do unit tests divide units? so many function points each function point is a series of processes how to ensure coverage? b.e2e test determines which interac...
as the title, seo asks that the rendered page be clean. The result of the current vue-ssr is that the data is saved in the < script > window.__INITIAL_STATE__= [data] < script > of the page. Is there a way to put these data in the json file , and ...
the original react single-page application of SPA has been changed to server rendering page according to the demo, on the Internet. However, opening the corresponding route through node and checking the source code with ctrl+u is still the most original...
in the past, in the react SPA project, I would listen for changes in parameters through the react lifecycle, and then re-request data, but the server rendering does not have this lifecycle, how can I listen? original code: componentWillReceiveProps(ne...
vue and react use ssr (server-side rendering) to solve seo and first-screen rendering solutions. this extends the problem. 80% of the data after http or other network requests is duplicated, and http caching is also a big problem? how do you solve the...
the react development used for the company s news and information projects did not take into account the seo problem at that time, but now the company needs to consider seo. It is generally said to use server rendering on the Internet. I would like to a...
import * as React from react ; import { connect } from react-redux ; import * as CSSModules from react-css-modules ; const styles = require( . index.css ) const Home = () => { return ( <div> 11111 < div> ) } expor...
can the elementUI, ele.me plug-in be used only in vue? Can I use template rendering? ...
recently encountered a demand, the react project needs to add a rich text editor, there are many online, to find a braft-editor, their own new project to use no problem. However, when adding to the project, because the project uses server rendering (jus...
using Rxjs to request data in Angular4.x, it is found that multiple requests will result in 1 request times, which will greatly affect performance. At present, we can only use the most clumsy order to declare the corresponding Subscription objects one b...
Code first let form = new formidable.IncomingForm({ encoding: utf-8 , uploadDir: uploads , keepExtensions: true }); form.on( progress , function(bytesReceived, bytesExpected) { console.log( [progress]: ,bytesReceived, bytesE...
vue.js environment, you need to fill in multiple objects on the page and add them to the backend in batches. Currently, there are two APIs in api.js: apiCheckDuplicated (name) apiCreateNew (name) ajax calls implemented by axios. now the page has en...
how to set the global URL here, you can use both in the development environment and online. ...
look at the JS Redbook. The description of Number (obj) is: call obj.valueOf (), first. If obj.valueOf () belongs to any basic type, then convert it according to the rules. If the result of obj.valueOf () is NaN, the obj.toString () method is called ...