We recommend that you reference the dojo learning notes. before js, it is best to declare the djConfig object to load the dojo. js can get the set value. Although dojo supports post-loading setting after version 0.3 and later, we strongly recommend that you use the code to declare djConfig as the first script:
A complete djConfig object is defined as follows (values are the default values of dojo)
Js Code
Var djConfig = {
IsDebug: false,
DebugContainerId :"",
BindEncoding :"",
AllowQueryConfig: false,
BaseScriptUri :"",
ParseWidgets: true
SearchIds: [],
BaseRelativePath :"",
LibraryScriptUri :"",
IePreventClobber: false,
IeClobberMinimal: true,
PreventBackButtonFix: true,
DebugContainerId is also related to debugging. If this parameter is not specified, the debugging information will directly use document. write output, which may damage the overall layout of the page. Therefore, you can specify any html element id that can be used as the container's html element as the debugging information output container.
AllowQueryConfig. This attribute specifies whether dojo allows reading related attributes in djConfig from parameters in the page url. If the value is true, dojo preferentially reads other attributes of djConfig from url parameters. For example: http: // server/dojoDemo.htm? DjConfig. debugContainerId = pDebug
BaseScriptUri, which generally does not need to be set. dojo automatically sets this value based on the path you reference dojo. js. For example,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.