|
楼主 |
发表于 2018-4-16 14:00:10
|
显示全部楼层
.w
<?xml version="1.0" encoding="utf-8"?>
<div xmlns="http://www.w3.org/1999/xhtml" xid="window" class="window" component="$UI/system/components/justep/window/window"
design="device:m;">
<div component="$UI/system/components/justep/model/model" xid="model" style="top:95px;left:122px;height:auto;"/>
<ul bind-foreach="months">
<li>
The current item is: <b data-bind="text: $data"></b>
</li>
</ul>
</div>
.js
define(function(require){
var $ = require("jquery");
var justep = require("$UI/system/lib/justep");
var Model = function(){
this.callParent();
months= ['Jan','Feb','Mar','etc'];
};
return Model;
});
Eclipse版本5.3.8.6212
前面的例子都没有问题 |
|