我也是在项目里不能用,开的demo测试的也不行,是不是依赖js不够啊图片不能上传
<!DOCTYPE html>
<html>
<head>
<script src="scripts/angular.min.js" type="text/javascript"></script>
<script src="scripts/wijmo.min.js" type="text/javascript"></script>
<script src="scripts/wijmo.grid.min.js" type="text/javascript"></script>
<script src="scripts/wijmo.angular.min.js" type="text/javascript"></script>
<script src="scripts/app.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body ng-app="app">
<div ng-controller="appCtrl">
<!-- this is the grid -->
<wj-flex-grid items-source="datas" x-allow-add-new="true" x-new-row-at-top="true">
</wj-flex-grid>
</div>
</body>
</html>
// declare app module
var app = angular.module('app', ['wj']);
// app controller provides data
app.controller('appCtrl', function appCtrl($scope) {
//1.datalists
$scope.datas = [{
name: '莫小贝'
}, {
name: '白展堂'
}, {
name: '佟湘玉'
}, {
name: '郭芙蓉'
}];
})
;
|