摘要:
<<!DOCTYPE html> <html ng-app='app' ng-controller='mainController'> <head> <meta charset="utf-8"> <title>多控制器思想-协同开发</title> <link rel="stylesheet" type="text/css" href="bootstrap.min.css" /> </he 阅读全文
摘要:
/* 1.router路由是angularJS中提出的,用于构建单页面应用的模块。 描述:其本质是从a标签点击跳转功能延展而来的。 说明:(1)router功能的实现需要依赖于angularJS的扩展库文件angular-route.min.js ... 阅读全文
摘要:
<!DOCTYPE html> <html ng-app='app' ng-controller='mainController'> <head> <meta charset="utf-8"> <title>评论案例</title> <link rel="stylesheet" type="text/css" href="bootstrap.min.css" /> </head> < 阅读全文
摘要:
<!DOCTYPE html> <html ng-app='app' ng-controller='mainController'> <head> <meta charset="utf-8"> <title ng-bind='mianTitle'></title> </head> <body> <button ng-click='func()'>点我调用controller中的函数</button 阅读全文
摘要:
<!DOCTYPE html> <html ng-app='app' ng-controller='mainController'> <head> <meta charset="utf-8"> <title></title> <script src="angular.js"></script> </head> <body> <ul> <li ng-repeat='pname in 阅读全文
摘要:
<!DOCTYPE html> <html ng-app='app' ng-controller='mainController'> <head> <meta charset="utf-8"> <!-- <title>控制器</title> --> <title ng-bind='pageTitle'></title> <script src="angular.js"></scrip 阅读全文