Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
<!DOCTYPE html>
<meta charset="utf-8" />
<script src="" type="text/javascript"></script>
<script src="" type="text/javascript"></script>
<form name="test_form" ng-controller="TestCtrl" ng-init="o=[0,1,2,3]; a=o[1];">
<select ng-model="a" ng-options="x for x in o" ng-change="show()">
<option value="">可以加这个空值</option>
<script type="text/javascript">
var TestCtrl = function($scope){
$ = function(){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment