引用avalon.js文件html
1.做用域:ide
ms-controller做用域://<div ms-controller="AAA"><div>{{name}}:{{color}}</div></div>spa
當子標籤的某屬性爲空時,自動檢索父標籤中的屬性,子表籤屬性值等於父標籤屬性值code
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>AvalonOnePage</title> <script src="~/Scripts/avalon.js"></script> <script> avalon.define({ $id: "test", name: "Hello Avalon", }); avalon.scan(); </script> </head> <body> <div ms-controller="test"> <div>{{name}}</div> </div> </body> </html>
ms-importment做用域:當子標籤的某屬性爲空時,顯示爲空htm
用法同上blog
ms-skip做用域:用法同上ip