共用方式為


Template.debugBreakOnRender property

Gets or sets a value that specifies whether a debug break is inserted into the first rendering of each template. This property only has an effect when the app is in debug mode.

Syntax

<div data-win-control="WinJS.Binding.Template" data-win-options="{ debugBreakOnRender : value}" >
</div>
var debugBreakOnRender = template.debugBreakOnRender;
template.debugBreakOnRender = debugBreakOnRender;

Property value

Type: ****

true if a debug break is inserted into the first rendering of each template; otherwise, false. The default value is false.

Remarks

To enable debugging and promote understanding, this property allows the developer to break into the template’s render method the first time it’s called and step through the code. It has no effect when not debugging. This property works in both classic and optimized templates.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Binding

See also

Template