要在不同的元素上绑定html 如何实现

0

window.onload=function(){ var viewModel = {
details: ko.observable();

};
var viewmodel={ app:ko.observable(); }; viewModel.details("<em>For further details, view the report <a href='report.html'>here</a>.</em>"); viewModel.app("<span>前端工程师</span>"); ko.applyBindings(viewModel); ko.applyBindings(viewmodel); }

立刻升级为会员,去除全部广告!