knockout 学习实例3 html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="js/knockout-3.4.0.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div data-bind="html:details"> </div> <script type="text/javascript">
var viewModel = {
details:ko.observable()
};
ko.applyBindings(viewModel);
viewModel.details("<b>For</b> <em>furter details, view the report <a href='#'>a</a></em>")
</script>
</body>
</html>
上一篇:sip 注册流程


下一篇:postgresql主从配置