300 lines of code to realize the MVVM responsive principle of Vue

preface Source download Vue's responsive principle is an old interview question, and most people will choose to recite the answer directly to deal with the interview. Once the interviewer continues to ask questions, he can't answer anything. Therefore, I hope to write code (about 300 lines) to implement a simple Vue MVVM framework by referring ...

Posted by superdezign on Wed, 25 May 2022 19:16:48 +0300

Build your own MVC framework based on Koa2

Express and Koa are lightweight web frameworks. Although they are flexible and simple, and you can start the server in a few lines of code, with the complexity of the business, you will soon find that you need to manually configure various middleware. Moreover, because this kind of web framework does not restrict the directory structure of the ...

Posted by andymt on Wed, 25 May 2022 18:10:42 +0300

10 minutes to thoroughly understand the single page application routing

Last time, we popularized the custom routing routes of the applet and started the routing journey; Today, I'll take advantage of the trend to apply routing on a single page and chat with you for 50 cents. If you don't talk well... Return... A dollar? Single page application features Suppose: in a web page, there is a button. Click it to jump to ...

Posted by trellie on Wed, 25 May 2022 17:27:57 +0300

How to use rem or viewport for mobile adaptation?

 When developing a mobile interface, mobile adaptation has always been a headache. Common mobile adaptations include viewport adaptation, rem adaptation, percentage adaptation, etc. Here we only introduce viewport adaptation and rem adaptation. adaptation. After reading this article, I believe that you should be able to actually operate the mob ...

Posted by schme16 on Wed, 25 May 2022 04:28:32 +0300

[CRM learning and development Day1 of SSM framework project customer relationship management system]

1.1 home page function demand When users visit the project home page, they first enter the login page. Timing & flow IndexController @Controller public class IndexController { /* Theoretically, assign a url to the Controller method: http://127.0.0.1:8080/crm/ For simplicity, the protocol: / / ip:port / application ...

Posted by goldfiles on Wed, 25 May 2022 00:07:31 +0300

Section 10: CSS3 advanced applications

Session 8: CSS3 advanced application 2.8.1 transition The transition properties provided by CSS3 can add effects when elements change from one style to another without using Flash animation or JavaScript script, such as fade, fade, animation speed, etc Transition property property The name of the CSS attribute used to specify the transition ...

Posted by maGGot_H on Tue, 24 May 2022 23:31:32 +0300

Use node An express framework

Handwritten an express series Basic usage of express const express = require("express"); const app = express(); app.get("/test", (req, res, next) => { console.log("Club technicians in place*1"); // res.end("club technician starts service 1"); next(); }); app.get("/test", (req, res, next) => { console.log("Club technici ...

Posted by chito on Tue, 24 May 2022 16:59:57 +0300

Flutter basic routing management, use of Fluro library and secondary encapsulation

In native development, Android and IOS have their own control page (Activity, ViewControl) function to jump, and in flutter, routing management has become more unified, flexible and efficient. Routing Management Requirements In Flutter, everything is a component, a page is also a component, and routing is a jump and value transfer between compo ...

Posted by dotbands on Tue, 24 May 2022 15:17:08 +0300

How to make this point clear?

I have to say that we need a premise to figure out this. You first need to know the basic concepts of function, object, scope and so on. It would be great to know the call, apply and bind methods Of course, it is very important to learn Chinese well You need to know the difference between first person and second person and third person Let's t ...

Posted by nfr on Tue, 24 May 2022 02:27:00 +0300

The style of the front end penetrates and modifies the styles defined inside other components

Cough, I've been writing the front-end for the last four months. Although I studied in 2018 and used vue on the Bi design in 2019, I haven't used it as frequently as I do now. After all, I'm still a java development engineer and don't have deep contact with the front-end. But as a programmer, I always have to output something to the world, code ...

Posted by infid3l on Mon, 23 May 2022 11:58:26 +0300