apicloud 的avm 看介紹 很不錯
https://docs.apicloud.com/apicloud3/index.html
最近apicloud 退出了新的 基于avm的云編譯3.0引擎 感覺不錯
通過看文檔來看要比hbuild的uniapp要更加方便一些,至少在很多理論上不用太多的轉(zhuǎn)換,也許是因為我在uniapp上已經(jīng)感受到了快速開發(fā)的樂趣。
簡單摘錄 avm的特點
```
<template>
? ?<view>
? ? ? ?<view class="header">
? ? ? ? ? ?<text>{this.data.title}</text>
? ? ? ?</view>
? ? ? ?<view class="content">
? ? ? ? ? ?<text>{this.data.content}</text>
? ? ? ?</view>
? ? ? ?<view class="footer">
? ? ? ? ? ?<text>{this.data.footer}</text>
? ? ? ?</view>
? ?</view></template><style>
? ?.header {
? ? ?height: 45px;
? ?}
? ?.content {
? ? ?flex-direction:row;
? ?}
? ?.footer {
? ? ?height: 55px;
? ?}</style><script>
? ?export default {
? ? ? ?name: 'api-test',
? ? ? ?
? ? ? ?apiready(){
? ? ? ? ? ?console.log("Hello APICloud");
? ? ? ?},
? ? ? ?data(){
? ? ? ? ? ?return {
? ? ? ? ? ? ? ?title: 'Hello App',
? ? ? ? ? ? ? ?content: 'this is content',
? ? ? ? ? ? ? ?footer: 'this is footer'
? ? ? ? ? ?}
? ? ? ?}
? ?}</script>
```
.stml的dsl式定義讓apicloud的開發(fā)速度可以飆升,再也不要多考慮什么vue多頁面了