diff --git a/doc/scripts/api.js b/doc/scripts/api.js index c907fcd..1ad0de4 100644 --- a/doc/scripts/api.js +++ b/doc/scripts/api.js @@ -21,7 +21,7 @@ define("api", ["mass"], function() { data: ["data", "parseData", "removeData", "mergeData"], css: "fn.css, fn.width, fn.height, fn.innerWidth, fn.innerHeight, fn.outerWidth, fn.outerHeight, fn.offset, fn.position, fn.offsetParent, fn.scrollParent, fn.scrollTop, fn.scrollLeft, css".match($.rword).sort(), attr: "fn.addClass, fn.hasClass, fn.removeClass, fn.toggleClass, fn.replaceClass, fn.val, fn.removeAttr, fn.removeProp, fn.attr, fn.prop, attr, prop".match($.rword).sort(), - event: ("fn.on,fn.bind,fn.off,fn.unbind,fn.delegate,fn.live,Event,eventSupport" + + event: ("fn.on,fn.bind,fn.off,fn.unbind,/Users/cheng/avalon/bug.htmlfn.delegate,fn.live,Event,eventSupport" + "fn.one,fn.undelegate,fn.die,fn.fire,fn.contextmenu,fn.click,fn.dblclick," + "fn.mouseout,fn.mouseover,fn.mouseenter,fn.mouseleave,fn.mousemove," + "fn.mousedown,fn.mouseup,fn.mousewheel,fn.abort,fn.error,fn.load,fn.unload," + diff --git a/mvvm/avalon.html.html b/mvvm/avalon.html.html index 9b9ed75..c5fbebe 100644 --- a/mvvm/avalon.html.html +++ b/mvvm/avalon.html.html @@ -27,6 +27,13 @@ avalon.define("content", function(vm) { vm.content = "这是斜体这是正常" }); + var a = avalon.define("a", function(vm) { + vm.monument = [{title: "aaa", descriptions: "111", ishowDetail: true}]; + + }) + setTimeout(function() { + a.monument = [{title: "bbb", descriptions: "222", ishowDetail: true}]; + }, 2000) avalon.scan() }) @@ -53,7 +60,7 @@
avalon拥有三种填空数据的功能。
我们看下面的例子:
-<div ms-controller="content"> @@ -71,12 +78,47 @@-JS
avalon.scan() })
{{content}}
-{{content}}
++<div ms-controller="a"> + <div ms-each-md="monument" > + <div > + <h2>{{md.title}}</h2> + + <p ms-visible="md.ishowDetail" ms-html="md.descriptions"></p><!-- 使用ms-html --> + <p ms-visible="md.ishowDetail">{{md.descriptions|html}}</p> <!-- 直接插入 --> + </div> + </div> +</div> ++
+ var a = avalon.define("a", function(vm) { + vm.monument = [{title: "aaa", descriptions: "111", ishowDetail: true}]; + + }) + setTimeout(function() { + a.monument = [{title: "bbb", descriptions: "222", ishowDetail: true}]; + }, 2000) ++
{{md.descriptions|html}}
+