<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>jQuery结构</title>
</head>
<body>
<script type='text/javascript'>
(function(window){
var XX = (function(){
var XX=function(){
alert('hello');
}
// alert(XX);
return window.XX=window.$=XX;//注释掉后会发现设计的巧妙
})()
// alert(xx);
// alert(window.XX);
})(window)
// delete XX;
// alert(XX)
</script>
</body>
</html>
jquery结构
最新推荐文章于 2019-05-15 15:29:55 发布