当前位置:网站首页>[wechat applet] 5 Applet structure directory

[wechat applet] 5 Applet structure directory

2022-06-12 14:32:00 Blue warm fire

5. Applet structure directory

  • Applet framework Wechat open documents
    (qq.com)
    The goal is to make it as simple as possible 、 Efficient way for developers to develop in wechat with native App Experience Services .
  • The applet framework provides its own view layer description language WXML and WXSS , as well as JavaScript
    , Data transmission and event system are provided between view layer and logic layer , Let developers focus on data and logic .

5.1 Applet file structure and tradition web contrast

structure Tradition web Wechat applet
structure HTMLWXML
style CSSWXSS
Logic JavaScriptJavaScript
To configure nothing JSON

From the above comparison, it can be concluded that , Tradition web It's a three-tier structure , The wechat app has a four tier structure , One more layer of configuration JSON

5.2 Basic project directory

 Insert picture description here

sitemap To configure | Wechat open documents (qq.com)

sitemap To configure

In the applet root directory sitemap.json The file is used to configure whether the applet and its page are allowed to be indexed by wechat .

Originality is not easy. , You can pay a little attention , I will insist on doing it seriously , There is something wrong with it , Please correct me a lot

原网站

版权声明
本文为[Blue warm fire]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203010510377379.html