angular.js - How to get the length of the value of the form textarea in angularjs
为情所困2017-05-15 16:52:23
0
2
784
How does angularjs get the length of the value of the form textarea? I want to use the length of this length to determine whether another p is displayed
You can judge the length directly through
$scope.test
拿到textarea
的value
,然后.length
.ng-model has bound the value of textarea to the variable $scope.test, and directly determines the length of $scope.test