扫码关注官方订阅号
angularJS中如何在后台判断是否选中同意?
是否同意
认证0级讲师
html代码
<label><input type="checkbox" ng-init="test=false" ng-model="test" value="同意"/>是否同意</label> <input type="button" ng-click="getCheck()"/>
js代码
var root = angular.module('root', []); root.controller('RootCtrl', function ($scope) { $scope.getCheck = function () { alert($scope.test); } });
只有ng-madol才能双向绑定,获得数据。。之前看错了。。sorry
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
html代码
js代码
只有ng-madol才能双向绑定,获得数据。。之前看错了。。sorry