版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章原始出版、作者信息和本声明。否则将追究法律责任。http://blog.youkuaiyun.com/mayongzhan - 马永占,myz,mayongzhan
<!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>
<meta http-equiv="Content-Language" content="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="马永占(MyZ)" />
<meta name="Copyright" content="马永占(MyZ)" />
<meta name="description" content="" />
<meta name="keywords"content="" />
<link rel="icon" href="" type="image/x-icon" />
<link rel="shortcut icon" href="" type="image/x-icon" />
<link href="" rel="stylesheet" type="text/css" />
<title></title>
<style type="text/css">
</style>
<script type="text/javascript" src="jquery-1.2.6.js"></script>
</head>
<body>
<script type="text/javascript">
$("document").ready(function(){
//jQuery.fn.debug = function() {
// return this.each(function(){
// alert(this);
// });
//};
//jQuery.log = function(message) {
// if(window.console) {
// console.debug(message);
// } else {
// alert(message);
// }
//};
//$("div p").debug();
//try {
// // do some error prone stuff
//} catch(exception) {
// $.log(exception);
//}
//下面的理解不是太好,当然就更别提应用了.
//jQuery.logError = function() { ... };
//jQuery.logWarning = function() { ... };
//jQuery.logDebug = function() { ... };
//to
//jQuery.log = {
// error : function() { ... },
// warning : function() { ... },
// debug : function() { ... }
//};
//var newMethods = {
// check : function() { ... },
// uncheck : function() { ... },
// toggleCheck : function() { ... }
//};
//jQuery.each(newMethods, function(i) {
// jQuery.fn[i] = this;
//});
//to
//(function() {
// var newMethods = {
// check : function() { ... },
// uncheck : function() { ... },
// toggleCheck : function() { ... }
// };
// jQuery.each(newMethods, function(i) {
// jQuery.fn[i] = this;
// });
//})();
//jQuery.fn.pluginName = function(url, options) {
// // define defaults and override with options, if available
// // by extending the default settings, we don't modify the argument
// settings = jQuery.extend({
// name: "defaultName",
// size: 5,
// global: true
// }, options);
//
// //do the rest of the plugin, using url and settings
//}
//$('selection').pluginName('mypage.php');
// override defaults for name and size, but not global
//var options = {
// name: "foobar",
// size: 10
//}
//$('selection').pluginName('mypage.php', options);
//jQuery.fn.extend({
// check : function() { ... },
// uncheck : function() { ... },
// toggleCheck : function() { ... }
//});
//to
//jQuery.extend(jQuery.expr[":"], {
// text : "a.type=='text'",
// radio : "a.type=='radio'",
// checkbox : "a.type=='checkbox'",
//});
//jQuery.fn.foobar = function(settings) {
// settings = jQuery.extend({
// animation: {opacity: "hide"}
// }, settings);
// // use the animation setting as a parameter for animate
// jQuery(...).animate(settings.animation);
//}
//
//jQuery(...).foobar({
// animation: {height: "hide"}
//});
//(function() {
// // put plugin code here
// var xyz; // xyz is NOT a global variable, it is only visible inside this function
//})(); // execute the function immediately!
//(function($) {
// // plugin code here, use $ as much as you like
//})(jQuery);
//jQuery(function($) {
// // your code using $ alias here
// });
});
</script>
</body>
</html>