angular-数据库
2016-03-22 22:56
288 查看
<div ng-app="myApp" ng-controller="customersCtrl">
<table>
<tr ng-repeat="x in names">
<td>{{ x.Name }}</td>
<td>{{ x.Country }}</td>
</tr>
</table>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('customersCtrl', function($scope, $http) {
$http.get("http://www.runoob.com/try/angularjs/data/Customers_MySQL.php")
.success(function (response) {$scope.names = response.records;});
});
</script>
[/code]
服务端代码
以下列出了列出了几种服务端代码类型:使用 PHP 和 MySQL。返回 JSON。
使用 PHP 和 MS Access。返回 JSON。
使用 ASP.NET, VB, 及 MS Access。 返回 JSON。
使用 ASP.NET, Razor, 及 SQL Lite。 返回 JSON。
来自为知笔记(Wiz)
相关文章推荐
- SqlServer知识点-操作xml
- postgresql - 服务配置
- 160322、Maven手动安装Oracle的jar包
- redis单机环境安装
- sqlite的基本方法
- MongoDB MapReduce
- Django: 之数据库导入、迁移和联用
- 简单SQL的增、删、改、查语句
- Oracle常用查询命令
- 如何解决SQL Server 2008 无法连接到(local)?
- servlet示例四:与数据库交互
- [转] Mac 下 PostgreSQL 的安装与使用
- [转]Ubuntu 12.04(32位)安装Oracle 11g(32位)全过程以及几乎所有问题的解决办法
- SQLite开源代码分析(一) main函数里面有多少东西
- Mysql在大型网站的应用架构演变
- mysql按ID排序(转)
- MySQL系列:用户及权限管理
- MySQL的create table as 与 like区别(转)
- oracle存储过程
- 安装了Visual Studio 2008自带的SQL Server 2005后,设置sa登录名