我收到此错误:未捕获的ReferenceError:在尝试显示输出结果时,未使用nodewebkit从platoj定义_。 我想要搞清楚 ------------ jsfile
$scope.analyse = function() {
$scope.db.select("project", {
"id": {
"value": $routeParams.id,
},
}).then(function(results) {
for(i=0; i < results.rows.length; i++) {
//pour
console.log (results.rows.item(i).path);
$scope.resultSource = results.rows.item(i).path+ path.sep + 'output' + path.sep +'index.html';
}
})
};
$scope.init =function ()
{
$scope.db.select("project", {
"id": {
"value": $routeParams.id,
},
}).then(function(results) {
for(i=0; i < results.rows.length; i++) {
var files = results.rows.item(i).path+ path.sep +'www'+ path.sep + 'js'+'/*.js';
var outputDir = results.rows.item(i).path+ path.sep +'output';
// null options for this example
var options = {
title: 'test'
};
var callback = function (report){
console.log (report);
};
plato.inspect(files, outputDir, {}, callback);
}
})
}
-------------- HTMLFILE
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-body">
<div class="form-group">
<h1></h1>
<a class="btn btn-primary" ng-click="analyse()">Analyse</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-body">
<div class="form-group">
<div ng-include="resultSource"></div>
</div>
</div>
</div>
</div>
</div>
</div>