JavaScript将js文件与html文件分开

html文件:




	test4
	



tt.js文件:

person=new Object();
person.firstname="Bill";
person.lastname="Gates";
person.age=56;
person.eyecolor="blue";
document.write(person.firstname+" is "+person.age+" years old.");

你可能感兴趣的:(js)