js文件的写法

1
2
3
4
5
(function(owner){
owner.btn=function(){
alert("aaa");
}
}(window.test={})) //test是js的文件名