
小程序采用同文件夹(文件名),统一通过app.json来管理
而vue以及wepy采用的是单文件模式(js、html、css)合并在一起了!
wepy单文件模式
<style>
.ok{
color: #fff;
}
</style> <template>
<picker-view @change="bindChange" value="{{items}}">
<picker-view-column>
<view wx:for="{{item}}">{{item}}</view>
</picker-view-column>
</picker-view>
</template> <script> import xxxxx from '@/xx/xxx' // alias example export default { }
</script>