a.js
function TestThis()
{
this.name = "";
this.doThis = function()
{
alert("test");
}
}b.js
var test = new TestThis();
test.doThis();
function TestThis()
{
this.name = "";
this.doThis = function()
{
alert("test");
}
}b.js
var test = new TestThis();
test.doThis();
我要的是一个类的定义或者是声明