Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 jquery selectmenu 插件和淘汰赛绑定有疑问。简而言之,我需要在敲除绑定完成后调用 selectmenu。我如何知道某些 html 元素的绑定已完成?
您可以在渲染模板后使用 afterrender 事件来做任何事情。
<div data-bind='template: { name: "personTemplate", data: myData, afterRender: myPostProcessingLogic }'> </div> viewModel.myPostProcessingLogic = function(elements) { //You can add custom post-processing logic here }