第一步,建立html,看看文件的配置
./databind.html
<html>
<head>
<meta charset="utf-8">
<title>data-bind</title>
</head>
<body>
<h3> 双向数据绑定</h3>
<h5>jquery 数据bind</h5>
<input type="text" data-bind-model ="name">
<input type="text" data-bind-model ="name">
<input type="text" data-bind-model ="name">
<button οnclick="show()">输出数据</button>
<script type="text/javascript" src="./bower_components/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="./js/databind/databindJQ.js"></script>
<script type="text/javascript" src="./js/databind/app.js"></script>
</body>
</html>