Besides its default meaning,
<script> tag supports two more configuration with its
type property in the top level component of a page.
type="data": For initial data configuration, the data defined here will overwrite the data definition in the
type="config": For configuration definition.
Sometimes, it is hard to maintain huge data structure in the default
<script> tag. So Weex allows us to have a
<script type="data"> tag to define initial data. The data defined in here will totally replace the data defined in the default
here is an example:
Weex also allows us to do some configuration with a
<script type="config">, So far, we only support the