日期:2014-05-16 浏览次数:20379 次
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.9.0/dojo/dojo.js"></script>
<script type="text/javascript">
require([
"dojo/_base/declare",
"dojo/request/script"
], function (declare,script) {
declare("OrderMap", null, {
map: null,
sellerUsername: null,
constructor: function (map, sellerUsername) {
this.map = map;
this.sellerUsername = sellerUsername;
},
});
}
);
var map="1111";
var orderMap = new OrderMap(map, sellerUsername);
//orderMap.show();
</script>
require(["dojo/_base/declare"], function(declare){
var A = declare(null, {
constructor: function(){ console.log("A"); }
});
var B = declare(A, {
constructor: function(){ console.log("B"); }
});
var C = declare(B, {
constructor: function(){ console.log("C"); }
});
new C();
});