Permalink
Browse files

文档

  • Loading branch information...
1 parent f1e4d8e commit 2952f1aa6f0a30b023720a1baa0433797dd764b7 @xuld xuld committed May 29, 2012
Showing with 5,930 additions and 10,878 deletions.
  1. +14 −10 jplus-3.0-full/docs/assets/scripts/docplus.js
  2. +1,661 −590 jplus-3.0-full/docs/assets/scripts/jplus.js
  3. +314 −0 jplus-3.0-full/docs/assets/styles/docplus.css
  4. +3 −7 jplus-3.0-full/docs/assets/styles/docplus.less
  5. +1 −1 jplus-3.0-full/docs/assets/styles/jplus.css
  6. +1 −1 jplus-3.0-full/docs/data/api.js
  7. +0 −1 jplus-3.0-full/docs/data/api/A.js
  8. +0 −1 jplus-3.0-full/docs/data/api/A.prototype.a.js
  9. +0 −1 jplus-3.0-full/docs/data/api/A.prototype.b.js
  10. +1 −1 jplus-3.0-full/docs/data/api/Array.create.js
  11. +0 −1 jplus-3.0-full/docs/data/api/Array.isArray.js
  12. +1 −1 jplus-3.0-full/docs/data/api/Array.js
  13. +1 −1 jplus-3.0-full/docs/data/api/Array.prototype.each.js
  14. +1 −1 jplus-3.0-full/docs/data/api/Array.prototype.filter.js
  15. +1 −1 jplus-3.0-full/docs/data/api/Array.prototype.forEach.js
  16. +1 −1 jplus-3.0-full/docs/data/api/Array.prototype.include.js
  17. +1 −1 jplus-3.0-full/docs/data/api/Array.prototype.indexOf.js
  18. +1 −1 jplus-3.0-full/docs/data/api/Array.prototype.insert.js
  19. +1 −1 jplus-3.0-full/docs/data/api/Array.prototype.invoke.js
  20. +1 −1 jplus-3.0-full/docs/data/api/Array.prototype.item.js
  21. +0 −1 jplus-3.0-full/docs/data/api/Array.prototype.js
  22. +1 −1 jplus-3.0-full/docs/data/api/Array.prototype.remove.js
  23. +1 −1 jplus-3.0-full/docs/data/api/Array.prototype.unique.js
  24. +0 −1 jplus-3.0-full/docs/data/api/B.js
  25. +1 −1 jplus-3.0-full/docs/data/api/Class.js
  26. +1 −1 jplus-3.0-full/docs/data/api/Date.js
  27. +1 −1 jplus-3.0-full/docs/data/api/Date.now.js
  28. +1 −1 jplus-3.0-full/docs/data/api/Dom.Document.js
  29. +1 −1 jplus-3.0-full/docs/data/api/Dom.Document.prototype.append.js
  30. +1 −1 jplus-3.0-full/docs/data/api/Dom.Document.prototype.dataField.js
  31. +1 −1 jplus-3.0-full/docs/data/api/Dom.Document.prototype.getPosition.js
  32. +1 −1 jplus-3.0-full/docs/data/api/Dom.Document.prototype.getScroll.js
  33. +1 −1 jplus-3.0-full/docs/data/api/Dom.Document.prototype.getScrollSize.js
  34. +1 −1 jplus-3.0-full/docs/data/api/Dom.Document.prototype.getSize.js
  35. +1 −1 jplus-3.0-full/docs/data/api/Dom.Document.prototype.insert.js
  36. +1 −1 jplus-3.0-full/docs/data/api/Dom.Document.prototype.query.js
  37. +1 −1 jplus-3.0-full/docs/data/api/Dom.Document.prototype.remove.js
  38. +1 −1 jplus-3.0-full/docs/data/api/Dom.Document.prototype.setScroll.js
  39. +1 −1 jplus-3.0-full/docs/data/api/Dom.Event.js
  40. +1 −1 jplus-3.0-full/docs/data/api/Dom.Event.prototype.constructor.js
  41. +1 −1 jplus-3.0-full/docs/data/api/Dom.Event.prototype.getTarget.js
  42. +1 −1 jplus-3.0-full/docs/data/api/Dom.Event.prototype.preventDefault.js
  43. +1 −1 jplus-3.0-full/docs/data/api/Dom.Event.prototype.stop.js
  44. +1 −1 jplus-3.0-full/docs/data/api/Dom.Event.prototype.stopPropagation.js
  45. +1 −1 jplus-3.0-full/docs/data/api/Dom.attrFix.js
  46. +1 −1 jplus-3.0-full/docs/data/api/Dom.calc.js
  47. +1 −1 jplus-3.0-full/docs/data/api/Dom.create.js
  48. +1 −1 jplus-3.0-full/docs/data/api/Dom.createNode.js
  49. +1 −1 jplus-3.0-full/docs/data/api/Dom.define.js
  50. +1 −1 jplus-3.0-full/docs/data/api/Dom.displayFix.js
  51. +1 −0 jplus-3.0-full/docs/data/api/Dom.document.js
  52. +1 −1 jplus-3.0-full/docs/data/api/Dom.find.js
  53. +1 −1 jplus-3.0-full/docs/data/api/Dom.get.js
  54. +1 −1 jplus-3.0-full/docs/data/api/Dom.getAttr.js
  55. +1 −1 jplus-3.0-full/docs/data/api/Dom.getDocument.js
  56. +1 −1 jplus-3.0-full/docs/data/api/Dom.getNode.js
  57. +1 −1 jplus-3.0-full/docs/data/api/Dom.getStyle.js
  58. +1 −1 jplus-3.0-full/docs/data/api/Dom.getText.js
  59. +1 −1 jplus-3.0-full/docs/data/api/Dom.hasChild.js
  60. +1 −1 jplus-3.0-full/docs/data/api/Dom.hasClass.js
  61. +1 −1 jplus-3.0-full/docs/data/api/Dom.hide.js
  62. +1 −1 jplus-3.0-full/docs/data/api/Dom.implement.js
  63. +1 −1 jplus-3.0-full/docs/data/api/Dom.implementIf.js
  64. +1 −1 jplus-3.0-full/docs/data/api/Dom.isHidden.js
  65. +1 −1 jplus-3.0-full/docs/data/api/Dom.js
  66. +1 −1 jplus-3.0-full/docs/data/api/Dom.load.js
  67. +1 −1 jplus-3.0-full/docs/data/api/Dom.match.js
  68. +1 −1 jplus-3.0-full/docs/data/api/Dom.movable.js
  69. +1 −1 jplus-3.0-full/docs/data/api/Dom.parse.js
  70. +1 −1 jplus-3.0-full/docs/data/api/Dom.parseNode.js
  71. +1 −1 jplus-3.0-full/docs/data/api/Dom.propFix.js
  72. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.addClass.js
  73. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.append.js
  74. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.appendTo.js
  75. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.attach.js
  76. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.bringToFront.js
  77. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.children.js
  78. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.clone.js
  79. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.constructor.js
  80. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.dataField.js
  81. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.delegate.js
  82. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.detach.js
  83. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.dispose.js
  84. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.dom.js
  85. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.empty.js
  86. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.find.js
  87. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.first.js
  88. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.getAll.js
  89. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.getAttr.js
  90. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.getHeight.js
  91. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.getHtml.js
  92. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.getOffset.js
  93. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.getOpacity.js
  94. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.getPosition.js
  95. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.getScroll.js
  96. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.getScrollSize.js
  97. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.getSize.js
  98. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.getStyle.js
  99. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.getText.js
  100. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.getWidth.js
  101. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.hasChild.js
  102. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.hasClass.js
  103. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.hide.js
  104. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.index.js
  105. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.insert.js
  106. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.insertBefore.js
  107. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.isHidden.js
  108. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.last.js
  109. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.match.js
  110. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.next.js
  111. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.offsetParent.js
  112. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.parent.js
  113. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.prev.js
  114. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.query.js
  115. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.remove.js
  116. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.removeChild.js
  117. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.removeClass.js
  118. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.replaceWith.js
  119. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.set.js
  120. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.setAttr.js
  121. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.setHeight.js
  122. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.setHtml.js
  123. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.setOffset.js
  124. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.setOpacity.js
  125. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.setPosition.js
  126. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.setScroll.js
  127. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.setSize.js
  128. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.setStyle.js
  129. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.setText.js
  130. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.setWidth.js
  131. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.show.js
  132. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.toggle.js
  133. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.toggleClass.js
  134. +1 −1 jplus-3.0-full/docs/data/api/Dom.prototype.unselectable.js
  135. +1 −1 jplus-3.0-full/docs/data/api/Dom.pseudos.hidden.js
  136. +1 −1 jplus-3.0-full/docs/data/api/Dom.pseudos.js
  137. +1 −1 jplus-3.0-full/docs/data/api/Dom.query.js
  138. +1 −1 jplus-3.0-full/docs/data/api/Dom.ready.js
  139. +1 −1 jplus-3.0-full/docs/data/api/Dom.show.js
  140. +1 −1 jplus-3.0-full/docs/data/api/Dom.styleFix.js
  141. +1 −1 jplus-3.0-full/docs/data/api/Dom.styleNumber.js
  142. +1 −1 jplus-3.0-full/docs/data/api/Dom.styleNumbers.js
  143. +1 −1 jplus-3.0-full/docs/data/api/Dom.styleString.js
  144. +1 −1 jplus-3.0-full/docs/data/api/Dom.textFix.js
  145. +1 −1 jplus-3.0-full/docs/data/api/Dom.window.js
  146. +1 −1 jplus-3.0-full/docs/data/api/Dom.zIndex.js
  147. +1 −1 jplus-3.0-full/docs/data/api/DomList.js
  148. +1 −1 jplus-3.0-full/docs/data/api/DomList.prototype.concat.js
  149. +1 −1 jplus-3.0-full/docs/data/api/DomList.prototype.constructor.js
  150. +1 −1 jplus-3.0-full/docs/data/api/DomList.prototype.invoke.js
  151. +1 −1 jplus-3.0-full/docs/data/api/DomList.prototype.item.js
  152. +1 −1 jplus-3.0-full/docs/data/api/DomList.prototype.length.js
  153. +1 −1 jplus-3.0-full/docs/data/api/Function.empty.js
  154. +1 −1 jplus-3.0-full/docs/data/api/Function.from.js
  155. +0 −1 jplus-3.0-full/docs/data/api/Function.isFunction.js
  156. +1 −1 jplus-3.0-full/docs/data/api/Function.js
  157. +1 −1 jplus-3.0-full/docs/data/api/Function.prototype.bind.js
  158. +0 −1 jplus-3.0-full/docs/data/api/Function.prototype.js
  159. +0 −1 jplus-3.0-full/docs/data/api/Function.returnFalse.js
  160. +0 −1 jplus-3.0-full/docs/data/api/Function.returnTrue.js
  161. +1 −1 jplus-3.0-full/docs/data/api/Object.each.js
  162. +1 −1 jplus-3.0-full/docs/data/api/Object.extend.js
  163. +1 −1 jplus-3.0-full/docs/data/api/Object.extendIf.js
  164. +1 −1 jplus-3.0-full/docs/data/api/Object.isArray.js
  165. +1 −1 jplus-3.0-full/docs/data/api/Object.isFunction.js
  166. +1 −1 jplus-3.0-full/docs/data/api/Object.isObject.js
  167. +1 −1 jplus-3.0-full/docs/data/api/Object.js
  168. +1 −1 jplus-3.0-full/docs/data/api/Object.map.js
  169. +1 −1 jplus-3.0-full/docs/data/api/Object.set.js
  170. +1 −1 jplus-3.0-full/docs/data/api/Point.js
  171. +1 −1 jplus-3.0-full/docs/data/api/Point.prototype.add.js
  172. +1 −1 jplus-3.0-full/docs/data/api/Point.prototype.constructor.js
  173. +1 −1 jplus-3.0-full/docs/data/api/Point.prototype.sub.js
  174. +1 −1 jplus-3.0-full/docs/data/api/Point.prototype.x.js
  175. +1 −1 jplus-3.0-full/docs/data/api/Point.prototype.y.js
  176. +1 −1 jplus-3.0-full/docs/data/api/String.ellipsis.js
  177. +1 −1 jplus-3.0-full/docs/data/api/String.format.js
  178. +1 −1 jplus-3.0-full/docs/data/api/String.js
  179. +1 −1 jplus-3.0-full/docs/data/api/String.prototype.capitalize.js
  180. +0 −1 jplus-3.0-full/docs/data/api/String.prototype.js
  181. +1 −1 jplus-3.0-full/docs/data/api/String.prototype.toCamelCase.js
  182. +1 −1 jplus-3.0-full/docs/data/api/String.prototype.trim.js
  183. +1 −1 jplus-3.0-full/docs/data/api/System.Base.addEvent.js
  184. +1 −1 jplus-3.0-full/docs/data/api/System.Base.extend.js
  185. +1 −1 jplus-3.0-full/docs/data/api/System.Base.implement.js
  186. +1 −1 jplus-3.0-full/docs/data/api/System.Base.implementIf.js
  187. +1 −1 jplus-3.0-full/docs/data/api/System.Base.js
  188. +1 −1 jplus-3.0-full/docs/data/api/System.Base.prototype.base.js
  189. +1 −1 jplus-3.0-full/docs/data/api/System.Base.prototype.dataField.js
  190. +0 −1 jplus-3.0-full/docs/data/api/System.Base.prototype.js
  191. +1 −1 jplus-3.0-full/docs/data/api/System.Base.prototype.on.js
  192. +1 −1 jplus-3.0-full/docs/data/api/System.Base.prototype.once.js
  193. +1 −1 jplus-3.0-full/docs/data/api/System.Base.prototype.trigger.js
  194. +1 −1 jplus-3.0-full/docs/data/api/System.Base.prototype.un.js
  195. +1 −1 jplus-3.0-full/docs/data/api/System.Native.js
  196. +0 −1 jplus-3.0-full/docs/data/api/System.getData.js
  197. +1 −1 jplus-3.0-full/docs/data/api/System.id.js
  198. +1 −1 jplus-3.0-full/docs/data/api/System.js
  199. +0 −1 jplus-3.0-full/docs/data/api/System.setData.js
  200. +0 −1 jplus-3.0-full/docs/data/api/append.js
  201. +1 −1 jplus-3.0-full/docs/data/api/assert.between.js
  202. +1 −1 jplus-3.0-full/docs/data/api/assert.checkStatusCode.js
  203. +1 −1 jplus-3.0-full/docs/data/api/assert.isArray.js
  204. +1 −1 jplus-3.0-full/docs/data/api/assert.isDate.js
  205. +1 −1 jplus-3.0-full/docs/data/api/assert.isElement.js
  206. +1 −1 jplus-3.0-full/docs/data/api/assert.isFunction.js
  207. +1 −1 jplus-3.0-full/docs/data/api/assert.isNode.js
  208. +1 −1 jplus-3.0-full/docs/data/api/assert.isNumber.js
  209. +1 −1 jplus-3.0-full/docs/data/api/assert.isObject.js
  210. +1 −1 jplus-3.0-full/docs/data/api/assert.isRegExp.js
  211. +1 −1 jplus-3.0-full/docs/data/api/assert.isString.js
  212. +1 −1 jplus-3.0-full/docs/data/api/assert.js
  213. +1 −1 jplus-3.0-full/docs/data/api/assert.loadScript.js
  214. +1 −1 jplus-3.0-full/docs/data/api/assert.loadStyle.js
  215. +1 −1 jplus-3.0-full/docs/data/api/assert.loadText.js
  216. +1 −1 jplus-3.0-full/docs/data/api/assert.notEmpty.js
  217. +1 −1 jplus-3.0-full/docs/data/api/assert.notNull.js
  218. +1 −1 jplus-3.0-full/docs/data/api/assert.resolve.js
  219. +1 −1 jplus-3.0-full/docs/data/api/assert.useLess.js
  220. +0 −1 jplus-3.0-full/docs/data/api/clone.js
  221. +0 −1 jplus-3.0-full/docs/data/api/contains.js
  222. +1 −1 jplus-3.0-full/docs/data/api/execScript.js
  223. +0 −1 jplus-3.0-full/docs/data/api/find.js
  224. +0 −1 jplus-3.0-full/docs/data/api/getAll.js
  225. +0 −1 jplus-3.0-full/docs/data/api/getHeight.js
  226. +0 −1 jplus-3.0-full/docs/data/api/getOffset.js
  227. +0 −1 jplus-3.0-full/docs/data/api/getPosition.js
  228. +0 −1 jplus-3.0-full/docs/data/api/getScroll.js
  229. +0 −1 jplus-3.0-full/docs/data/api/getScrollSize.js
  230. +0 −1 jplus-3.0-full/docs/data/api/hasChild.js
  231. +1 −1 jplus-3.0-full/docs/data/api/imports.js
  232. +0 −1 jplus-3.0-full/docs/data/api/insert.js
  233. +0 −1 jplus-3.0-full/docs/data/api/isHidden.js
  234. +1 −0 jplus-3.0-full/docs/data/api/navigator.isIE10.js
  235. +1 −0 jplus-3.0-full/docs/data/api/navigator.isIE6.js
  236. +1 −0 jplus-3.0-full/docs/data/api/navigator.isIE7.js
  237. +1 −0 jplus-3.0-full/docs/data/api/navigator.isIE8.js
  238. +1 −0 jplus-3.0-full/docs/data/api/navigator.isIE9.js
  239. +1 −0 jplus-3.0-full/docs/data/api/navigator.isOpera10.js
  240. +1 −1 jplus-3.0-full/docs/data/api/navigator.isQuirks.js
  241. +1 −1 jplus-3.0-full/docs/data/api/navigator.isStd.js
  242. +1 −1 jplus-3.0-full/docs/data/api/navigator.js
  243. +1 −1 jplus-3.0-full/docs/data/api/navigator.name.js
  244. +1 −1 jplus-3.0-full/docs/data/api/navigator.version.js
  245. +0 −1 jplus-3.0-full/docs/data/api/query.js
  246. +0 −1 jplus-3.0-full/docs/data/api/replaceWith.js
  247. +1 −1 jplus-3.0-full/docs/data/api/trace.api.js
  248. +1 −1 jplus-3.0-full/docs/data/api/trace.decodeUTF8.js
  249. +1 −1 jplus-3.0-full/docs/data/api/trace.dir.js
  250. +1 −1 jplus-3.0-full/docs/data/api/trace.error.js
  251. +1 −1 jplus-3.0-full/docs/data/api/trace.eval.js
  252. +1 −1 jplus-3.0-full/docs/data/api/trace.getExtInfo.js
  253. +1 −1 jplus-3.0-full/docs/data/api/trace.info.js
  254. +1 −1 jplus-3.0-full/docs/data/api/trace.inspect.js
  255. +1 −1 jplus-3.0-full/docs/data/api/trace.js
  256. +1 −1 jplus-3.0-full/docs/data/api/trace.log.js
  257. +1 −1 jplus-3.0-full/docs/data/api/trace.time.js
  258. +1 −1 jplus-3.0-full/docs/data/api/trace.warn.js
  259. +1 −1 jplus-3.0-full/docs/data/api/using.js
  260. +0 −28 jplus-3.0-full/docs/data/example.js
  261. +0 −2,576 jplus-3.0-full/docs/data/source/base.html
  262. +2,663 −3,886 jplus-3.0-full/docs/data/source/base.js.html
  263. +0 −3,263 jplus-3.0-full/docs/data/source/base_1.html
  264. +1,043 −235 jplus-3.0-full/docs/data/source/base_1.js.html
  265. +0 −29 jplus-3.0-full/docs/data/source/test.html
  266. +6 −6 jplus-3.0-full/docs/index.html
@@ -338,7 +338,7 @@ DocPlus.Controller = Class({
dataJsPath: null,
/**
- * 当前控制器主页对应的资源。
+ * 当前控制器主页对应的资源。
*/
homeView: null,
@@ -502,7 +502,7 @@ DocPlus.Controller = Class({
this.homeView = new DocPlus.HomeView(name, this, title, description);
this.homeView.tab.appendTo('navbar');
- this.homeView.setContent('<div>ddd55d</div>').deactive();
+ this.homeView.setContent('<div>请从左边选择 API 信息</div>').deactive();
this.treeView = new TreeView()
.addClass('x-treeview-plain')
@@ -749,9 +749,9 @@ DocPlus.APIController = DocPlus.Controller.extend({
}
},
- initTreeNode: function (memberInfo, pathInfo, name) {
- memberInfo.treeNode.setText(name).setHref('#!' + this.name + '/' + pathInfo);
- memberInfo.treeNode.last('span').addClass('icon-member icon-' + memberInfo.icon);
+ initTreeNode: function (memberInfo, pathInfo, name) {
+ memberInfo.treeNode.setText(name).setHref('#!' + this.name + '/' + pathInfo);
+ memberInfo.treeNode.last('span').addClass('icon-member icon-' + memberInfo.icon);
},
getTreeNode: function(pathInfo, hash, createIfNotExist){
@@ -1090,7 +1090,7 @@ DocPlus.APIRender = {
var m;
node.className = 'doc-list';
for(node = node.firstChild; node; node = node.nextSibling){
- if(node.nodeType === 1 && (m = /^\{(.*?)\}\s+(.*?)(\s*=\s*(.*?))\s+(.*)$/.exec(Dom.getText(node)))){
+ if(node.nodeType === 1 && (m = /^\{(.*?)\}\s+(.*?)(\s*=\s*(.*?))?\s+(.*)$/.exec(Dom.getText(node)))){
node.innerHTML = String.format("<strong>{0}</strong>({1}): {2}{3}", m[2], DocPlus.APIRender.getTypeLink(m[1]), m[5], m[4] ? " 默认为 " + m[4] + "": "");
}
}
@@ -1129,7 +1129,7 @@ DocPlus.APIRender = {
tpl: '\
<div class="doc">\
- <div class="doc-func">\
+ <div class="doc-func x-hide">\
<a type="button" href="javascript:;" class="x-button x-button-plain x-menubutton">显示 <span class="x-button-menu x-button-menu-down"> </span> </a>\
</div>\
<h1>\
@@ -1334,13 +1334,17 @@ DocPlus.APIRender = {
};
DocPlus.initControllers = function(){
-
- new DocPlus.HomeController(null, '', '', '<span class="x-icon x-icon-home"></span>', '首页');
+ // new DocPlus.HomeController(null, '', '', '<span class="x-icon x-icon-home"></span>', '首页');
new DocPlus.APIController('data/api.js', 'data/api/', 'api', 'API');
- new DocPlus.Controller('data/example.js', '../example/', 'example', '示例');
+ // new DocPlus.Controller('data/example.js', '../example/', 'example', '示例');
+
+ if(!location.hash){
+ location.hash = '#!api/';
+ }
+
};
Oops, something went wrong.

0 comments on commit 2952f1a

Please sign in to comment.