用法如下,请下载附件获取全部可执行源代码:
- <div id="dbg">
- <!-- 输出信息的容器 -->
- <b>调试信息:</b>
- </div>
- <script language="javascript">
- //初始化调试对象,第一个参数应与变量名相同,第二个参数是输出信息的容器,本例为span的id
- var iJs = new myJsToolsClass("iJs","dbg");
- iJs.showObjectNames("iJs");
- iJs.put("");
- iJs.put("an example of put");
- iJs.pt("1+1");
- </script>
调试信息:
[Object] iJs |--[function] by |--[function] clearDbgInfo |--[function] is_array |--[function] pt |--[function] put |--[function] put1 |--[function] showObject |--[function] showObjectNames an example of put a+b+80 380