0

是否可以在 JavaScript 中实例化一个 data-win-control 对象,而不必将其放到 DOM 上并调用WinJS.UI.processAll()

4

1 回答 1

2

是的,这是可能的,你可以在后面的代码中做到这一点:

// 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);
于 2013-01-27T13:31:24.527 回答