且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用angularjs将数据绑定到元素

更新时间:2022-02-14 02:42:53

试试



try

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
     <script>
         var app = angular.module('myModule', []);
         app.controller('myController', function (


scope,


compile){