我有一些 javascript 在 Blend for Visual Studion 2012 中查看时会导致问题。我想对设计模式进行简单检查,以便在 Blend Design Surface 中查看时可以跳过代码。
最佳答案
我在推特上发布了这个问题,很快就得到了同行的回答。
var isInDesignMode = Windows.ApplicationModel.DesignMode.designModeEnabled;
关于expression-blend - 如何使用 WinJS 检测设计模式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12078096/