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.
如何使用 knockoutJS 在页面加载时触发 div 的单击事件?我试过了
$(document).ready(function () { $('.divClass').first().trigger('click'); }
MVVM 的全部意义在于分离视图和视图逻辑(ViewModel)。而不是触发点击触发绑定到点击的视图模型上的功能