答案 0 :(得分:0)
HTML
<body ng-app="testApp" ng-controller="testController">
<textarea ng-model="tinymceModel" ng-list=" " ng-trim="false" rows="10"></textarea>
</body>
控制器
testApp.controller('testController', function ($scope)
{
$scope.tinymceModel =
[
"First String",
"Second String",
"Third String"
];
});
// Code goes here
var testApp = angular.module('testApp', []);
testApp.controller('testController', function ($scope)
{
$scope.tinymceModel =
[
"First String",
"Second String",
"Third String"
];
});
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular.min.js" type="text/javascript"></script>
<script src="script.js"></script>
</head>
<body ng-app="testApp" ng-controller="testController">
<textarea ng-model="tinymceModel" ng-list=" " ng-trim="false" rows="10"></textarea>
</body>
</html>