📄 class.tmpl
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset={+IO.encoding+}" /> <meta name="generator" content="JsDoc Toolkit" /> {! Link.base = "../"; /* all generated links will be relative to this */ !} <title>JsDoc Reference - {+data.alias+}</title> <style type="text/css"> {+include("static/default.css")+} </style> </head> <body><!-- ============================== header ================================= --> <!-- begin static/header.html --> {+include("static/header.html")+} <!-- end static/header.html --><!-- ============================== classes index ============================ --> <div id="index"> <!-- begin publish.classesIndex --> {+publish.classesIndex+} <!-- end publish.classesIndex --> </div> <div id="content"><!-- ============================== class title ============================ --> <h1 class="classTitle"> {! var classType = ""; if (data.isBuiltin()) { classType += "Built-In "; } if (data.isNamespace) { if (data.is('FUNCTION')) { classType += "Function "; } classType += "Namespace "; } else { classType += "Class "; } !} {+classType+}{+data.alias+} </h1><!-- ============================== class summary ========================== --> <p class="description"> <if test="data.augments.length"><br />Extends {+ data.augments .sort() .map( function($) { return new Link().toSymbol($); } ) .join(", ") +}.<br /> </if> {+resolveLinks(data.classDesc)+} <if test="!data.isBuiltin()">{# isn't defined in any file #} <br /><i>Defined in: </i> {+new Link().toSrc(data.srcFile)+}. </if> </p><!-- ============================== constructor summary ==================== --> <if test="!data.isBuiltin() && (data.isNamespace || data.is('CONSTRUCTOR'))"> <table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class {+data.alias+}."> <caption>{+classType+}Summary</caption> <thead> <tr> <th scope="col">Constructor Attributes</th> <th scope="col">Constructor Name and Description</th> </tr> </thead> <tbody> <tr> <td class="attributes">{! if (data.isPrivate) output += "<private> "; if (data.isInner) output += "<inner> "; !} </td> <td class="nameDescription" {!if (data.comment.getTag("hilited").length){output += 'style="color: red"'}!}> <div class="fixedFont"> <b>{+ new Link().toSymbol(data.alias).inner('constructor')+}</b><if test="classType != 'Namespace '">{+ makeSignature(data.params) +}</if> </div> <div class="description">{+resolveLinks(summarize(data.desc))+}</div> </td> </tr> </tbody> </table> </if><!-- ============================== properties summary ===================== --> <if test="data.properties.length"> {! var ownProperties = data.properties.filter(function($){return $.memberOf == data.alias && !$.isNamespace}).sort(makeSortby("name")); !} <if test="ownProperties.length"> <table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class {+data.alias+}."> <caption>Field Summary</caption> <thead> <tr> <th scope="col">Field Attributes</th> <th scope="col">Field Name and Description</th> </tr> </thead> <tbody> <for each="member" in="ownProperties"> <tr> <td class="attributes">{! if (member.isPrivate) output += "<private> "; if (member.isInner) output += "<inner> "; if (member.isStatic) output += "<static> "; if (member.isConstant) output += "<constant> "; !} </td> <td class="nameDescription"> <div class="fixedFont"> <if test="member.isStatic && member.memberOf != '_global_'">{+member.memberOf+}.</if><b>{+new Link().toSymbol(member.alias).withText(member.name)+}</b> </div> <div class="description">{+resolveLinks(summarize(member.desc))+}</div> </td> </tr> </for> </tbody> </table> </if> <if test="data.inheritsFrom.length"> <dl class="inheritsList"> {! var borrowedMembers = data.properties.filter(function($) {return $.memberOf != data.alias}); var contributers = []; borrowedMembers.map(function($) {if (contributers.indexOf($.memberOf) < 0) contributers.push($.memberOf)}); for (var i = 0, l = contributers.length; i < l; i++) { output += "<dt>Fields borrowed from class "+new Link().toSymbol(contributers[i])+": </dt>" + "<dd>" + borrowedMembers .filter( function($) { return $.memberOf == contributers[i] } ) .sort(makeSortby("name")) .map( function($) { return new Link().toSymbol($.alias).withText($.name) } ) .join(", ") + "</dd>"; } !} </dl> </if> </if><!-- ============================== methods summary ======================== --> <if test="data.methods.length"> {! var ownMethods = data.methods.filter(function($){return $.memberOf == data.alias && !$.isNamespace}).sort(makeSortby("name")); !} <if test="ownMethods.length"> <table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class {+data.alias+}."> <caption>Method Summary</caption> <thead> <tr> <th scope="col">Method Attributes</th> <th scope="col">Method Name and Description</th> </tr> </thead> <tbody> <for each="member" in="ownMethods"> <tr> <td class="attributes">{! if (member.isPrivate) output += "<private> "; if (member.isInner) output += "<inner> "; if (member.isStatic) output += "<static> "; !} </td> <td class="nameDescription"> <div class="fixedFont"><if test="member.isStatic && member.memberOf != '_global_'">{+member.memberOf+}.</if><b>{+new Link().toSymbol(member.alias).withText(member.name)+}</b>{+makeSignature(member.params)+} </div> <div class="description">{+resolveLinks(summarize(member.desc))+}</div> </td> </tr> </for> </tbody> </table> </if> <if test="data.inheritsFrom.length"> <dl class="inheritsList"> {! var borrowedMembers = data.methods.filter(function($) {return $.memberOf != data.alias}); var contributers = []; borrowedMembers.map(function($) {if (contributers.indexOf($.memberOf) < 0) contributers.push($.memberOf)}); for (var i = 0, l = contributers.length; i < l; i++) { output += "<dt>Methods borrowed from class "+new Link().toSymbol(contributers[i])+": </dt>" + "<dd>" + borrowedMembers .filter( function($) { return $.memberOf == contributers[i] } ) .sort(makeSortby("name")) .map( function($) { return new Link().toSymbol($.alias).withText($.name) } ) .join(", ") + "</dd>"; } !} </dl> </if> </if><!-- ============================== constructor details ==================== --> <if test="!data.isBuiltin() && (data.isNamespace || data.is('CONSTRUCTOR'))"> <div class="details"><a name="constructor"> </a> <div class="sectionTitle"> {+classType+}Detail </div> <div class="fixedFont">{! if (data.isPrivate) output += "<private> "; if (data.isInner) output += "<inner> "; !} <b>{+ data.alias +}</b><if test="classType != 'Namespace '">{+ makeSignature(data.params) +}</if> </div> <div class="description"> {+resolveLinks(data.desc)+} <if test="data.author"><br /><i>Author: </i>{+data.author+}.</if> </div> <if test="data.example.length"> <for each="example" in="data.example"> <pre class="code">{+example+}</pre> </for> </if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -