随笔分类 - angular
angular
摘要:这是一个最简单的angularjs的例子,关于数据绑定的,大家可以执行一下,看看效果 关于数据双向绑定,有时候不需要实时同步,比如当输入框失去焦点的时候才去更新div里面的内容,这里可以用上ng-model-options属性来解决,将上面的代码稍做修改: 或者改为每隔1秒来更新:
阅读全文
摘要:当然了,直接用Eclipse开发,完全没问题。我只是需要加个智能感知,安装一个Eclipse插件。 Eclipse菜单-》Help-》Eclipse Marketplace 安装完以后,项目并不能直接支持argularjs语法的智能感知,需要通过右键项目-》Configure-》Convert to
阅读全文
摘要:<html ng-app="myApp"> <head> <title>angularjs-ajax</title> <script type="text/javascript" src="js/angular149/angular.min.js"></script> </head> <body n
阅读全文
摘要:<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <html ng-app="myApp"> <head> <title>angularjs-cookie</title> <s
阅读全文
摘要:Sample.html <!DOCTYPE html> <html ng-app="myApp"> <head> <title>form</title> <script type="text/javascript" src="js/angular.min.js"></script> </head>
阅读全文
摘要:<!DOCTYPE html> <html ng-app="myApp"> <head> <title>angularjs-setValue</title> </head> <body ng-controller="body"> <input type="text" name="input1" ng
阅读全文
摘要:<!DOCTYPE html> <html ng-app="myApp"> <head> <title>angularjs-validate</title> <script type="text/javascript" src="js/angular.min.js"></script> </head
阅读全文
摘要:<!DOCTYPE html> <html ng-app="myApp"> <head> <title>angularjs-setValue</title> </head> <body ng-controller="body"> <input type="text" name="input1" ng
阅读全文
摘要:<!DOCTYPE html> <html ng-app="myApp"> <head> <title>angularjs-focus</title> </head> <body> <input type="text" set-Focus=""> <script type="text/javascr
阅读全文

浙公网安备 33010602011771号