<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Document</title>
<script type="text/javascript" src="jquery-2.1.4.min.js" ></script>
<script type="text/javascript">
function fun(){
fun_1=function(){
console.log("1");
}
fun_2=function(){
console.log("2");
}
return {
fun_10:fun_1,
fun_20:fun_2
}
}
var aa=fun();
aa.fun_10();
aa.fun_20();
</script>
</head>
<body>
</body>
</html>
js 返回一个对象引发的血案
最新推荐文章于 2024-07-12 16:21:22 发布