摘要: 1. 用类名查找元素<!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 " > <head> <title>Untitled Page</title> <script type="te 阅读全文
posted @ 2010-05-14 14:23 damoyan 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 自定义一个log函数,输出传入函数的对象或者信息. Log.js // JScript source code function log(category, message, object) { // If this category is explicitly disabled, do nothing if (log.options[category + "Disabled "]) return ; // Find the container var id = category + "_log "; var c = document ... 阅读全文
posted @ 2010-05-14 14:16 damoyan 阅读(683) 评论(0) 推荐(0) 编辑