面向对象的学习贴 本帖最后由 hu602060803 于 2013-05-14 21:32:52 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function show(obj){alert(obj);return this; }show ("111")("222");看的第一眼我就在想 能运行吗return arguments.callee; 各种混乱function show(obj){alert(obj);return arguments.callee; }show ("111")("222");function css(attr, value){ if(arguments.length==2){ alert("参照jquery的css方法,改变属性") }else{ alert("参照jquery的css方法,读取属性") }} <!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-Type" content="text/html; charset=utf-8" /> <title></title> <script type="text/javascript"> var $ = function() { return shili; } || {}; var shili; shili = new $(); $.prototype.show = function() { alert('show'); return this;}$.prototype.hide = function() { alert('hide'); return this;}$.show = function() { alert('show'); return this;}$.hide = function() { alert('hide'); return this;}$.show().hide(); </script> <style type="text/css"> </style> </head> <body> </body> </html>一切理论都是纸老虎,实践里出政权 extjs 中柱状图数据与后台交互 javascript分离字符串 求简单代码 js 如何向列表菜单添加一个或多个选项 如何实现图片来回互换功能 [真相] 做人不能太CNN 正则去除重复行 关于 window.createPopup(),望各位指点。 如何使提交按钮点击后变为不可用状态? [原创]业余时间写的一个飞行射击游戏 手机平台上通过javascript选择input文本并弹出拷贝菜单的问题 这个是什么意思?
alert(obj);
return this;
}
show ("111")("222");
看的第一眼我就在想 能运行吗return arguments.callee;
function show(obj){
alert(obj);
return arguments.callee;
}
show ("111")("222");
function css(attr, value){
if(arguments.length==2){
alert("参照jquery的css方法,改变属性")
}else{
alert("参照jquery的css方法,读取属性")
}
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript">
var $ = function() {
return shili;
} || {};
var shili;
shili = new $();
$.prototype.show = function() {
alert('show');
return this;
}$.prototype.hide = function() {
alert('hide');
return this;
}$.show = function() {
alert('show');
return this;
}$.hide = function() {
alert('hide');
return this;
}$.show().hide();
</script>
<style type="text/css">
</style>
</head>
<body>
</body>
</html>一切理论都是纸老虎,实践里出政权