What is the difference between import and include in a mini program?

青灯夜游
Release: 2021-07-20 17:25:58
forward
3592 people have browsed it

This article will introduce to you the difference between import and include in WeChat applet. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

What is the difference between import and include in a mini program?

Related learning recommendations:Small Program Development Tutorial

import has the concept of scope, that is, it will only import the definitions in the target file The template of import will not import the target file. The template of import

 
Copy after login
  
Copy after login