"JAVA applet real" applet page refer to external wxml General page (21)

Are now pay attention to the efficiency of development, the original pure android and ios no longer popular, it's all mixed-use development, mixed-use development in many pages are basically on the structure, head, body, foot, so the program should be so small meet as legend. Source: https: //github.com/limingios/wxProgram.git in No.8

The introduction of external pages applet

may include in addition to the target file template, wxs introduced into the entire code, is copied to include equivalent position.

  1. Keywords include

  2. The official explained
    > https://developers.weixin.qq.com/miniprogram/dev/framework/view/wxml/import.html

  1. External demonstration calling page

head.wxml


<view class="container"> head </view>

body.wxml

<view class="container">
body
</view>

isInclude.wxml

<include src="head.wxml"/>
<include src="body.wxml"/>
<view class="container">
foot
</view>

PS: the page is to call each other like, moving bricks also try to find the right skills ha ha!


Guess you like

Origin blog.51cto.com/12040702/2425834