⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 html.js

📁 用最近的dojo1.2.1制作前端的ajax购书网站
💻 JS
字号:
/*	Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.	Available via Academic Free License >= 2.1 OR the modified BSD license.	see: http://dojotoolkit.org/license for details*/if(!dojo._hasResource["dojox.dtl.render.html"]){dojo._hasResource["dojox.dtl.render.html"]=true;dojo.provide("dojox.dtl.render.html");dojo.require("dojox.dtl.Context");dojo.require("dojox.dtl.html");dojox.dtl.render.html.Render=function(_1,_2){this._tpl=_2;this.domNode=dojo.byId(_1);};dojo.extend(dojox.dtl.render.html.Render,{setAttachPoint:function(_3){this.domNode=_3;},render:function(_4,_5,_6){if(!this.domNode){throw new Error("You cannot use the Render object without specifying where you want to render it");}this._tpl=_5=_5||this._tpl;_6=_6||_5.getBuffer();_4=_4||new dojox.dtl.Context();var _7=_5.render(_4,_6).getParent();if(!_7){throw new Error("Rendered template does not have a root node");}if(this.domNode!==_7){this.domNode.parentNode.replaceChild(_7,this.domNode);dojo._destroyElement(this.domNode);this.domNode=_7;}}});}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -