编辑代码:
查看结果 »
试一试 - ©
w3ii.com
<
!DOCTYPE
html
>
<
html
>
<
script
src
="/lib/angular-1.4.8.min.js"
>
<
/script
>
<
body
>
<
div
data-ng-app
=""
data-ng-init
="firstName='John'"
>
<
p
>
The name is
<
span
data-ng-bind
="firstName"
>
<
/span
>
<
/p
>
<
/div
>
<
/body
>
<
/html
>
<!DOCTYPE html> <html> <script src="/lib/angular-1.4.8.min.js"></script> <body> <div data-ng-app="" data-ng-init="firstName='John'"> <p>The name is <span data-ng-bind="firstName"></span></p> </div> </body> </html>