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.
是否可以在 JavaScript 中实例化一个 data-win-control 对象,而不必将其放到 DOM 上并调用WinJS.UI.processAll()?
WinJS.UI.processAll()
是的,这是可能的,你可以在后面的代码中做到这一点:
// Object is a new FlipView component instantiate in code behind // element can be an element already existing in the DOM or just created with JS var object = new WinJS.UI.FlipView(element, options);