<html>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
alert(b(c(2)));
});function b(y){
var y=0;
y=y+1;
};
function c(x){
var x=0;
x=x*2;
};
</script>
</head>
<body>
<button type="button">Hide</button>
<p>This is a paragraph with little content.</p>
</body>
</html>
我想用Jquery写函数嵌套,并显示结果。因为刚学,小白一个,写不成功。哪位老大帮我写写,谢谢。
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
alert(b(c(2)));
});function b(y){
var y=0;
y=y+1;
};
function c(x){
var x=0;
x=x*2;
};
</script>
</head>
<body>
<button type="button">Hide</button>
<p>This is a paragraph with little content.</p>
</body>
</html>
我想用Jquery写函数嵌套,并显示结果。因为刚学,小白一个,写不成功。哪位老大帮我写写,谢谢。
return y+1;
};
function c(x){
return x*2;
};
alert(b(c(2)));