我有一个简单的网络应用程序,它从用户获取值并将其存储在MYSQL中。该应用程序是用PHP编写的。
我正在为此开发一个chrome web应用程序。 HTML部分已完成。但是,我不是用户如何从数据库中获取数据并在chrome应用程序窗口中显示它。
Web应用程序使用Angular JS,PHP,MySQL。
提前感谢。
编辑:
HTML
<form>
<div>
<div class="form-group">
<div class="col-sm-5">
<input type="text" x-webkit-speech class="form-control" ng-model="mytask" placeholder="enter your task" >
</div>
</div>
</div>
<button ng-click='AddTask();' class="btn btn-success">Add Task</button>
</form>
JS
$scope.AddTask = function() {
//$scope.errors.splice(0, $scope.errors.length); // remove all error messages
//$scope.msgs.splice(0, $scope.msgs.length);
$http.post('create_task.php', {'mytask': $scope.mytask, done:false}
).success(function(data, status, headers, config) {
console.log($scope.mytask);
$scope.mytask = "";
这适用于网络应用,但不适用于Chrome网络应用。知道我怎么能让它发挥作用吗?