js字符串拼接

var html = '<ul id="pref-nav-panel"> \
<li> \
<img src="'+Ext.BLANK_IMAGE_URL+'" class="icon-pref-autorun"/> \
<a id="viewShortcuts" href="#">Shortcuts</a><br /> \
<span>Choose which applications appear in your shortcuts.</span> \
</li> \
<li> \
<img src="'+Ext.BLANK_IMAGE_URL+'" class="icon-pref-autorun"/> \
<a id="viewAutoRun" href="#">Auto Run Apps</a><br /> \
<span>Choose which applications open automatically once logged in.</span> \
</li> \
<li> \
<img src="'+Ext.BLANK_IMAGE_URL+'" class="icon-pref-quickstart"/> \
<a id="viewQuickstart" href="#">Quick Start Apps</a><br /> \
<span>Choose which applications appear in your Quick Start panel.</span> \
</li> \
<li> \
<img src="'+Ext.BLANK_IMAGE_URL+'" class="icon-pref-appearance"/> \
<a id="viewAppearance" href="#">Window Color and Appearance</a><br /> \
<span>Fine tune window color and style of your windows.</span> \
</li> \
<li> \
<img src="'+Ext.BLANK_IMAGE_URL+'" class="icon-pref-wallpaper"/> \
<a id="viewWallpapers" href="#">Desktop Background</a><br /> \
<span>Choose from available wallpapers or colors to decorate you desktop.</span> \
</li> \
</ul>

比+=拼接字符串的方式好看多了,多看好的开源项目。

你可能感兴趣的:(html,windows)