JavaScript toSource() ����

�������÷�

toSource() �������ر�ʾ����Դ�������ַ�����

�﷨

object.toSource()

��ʾ��ע��

ע�ͣ��÷����� Internet Explorer ����Ч��

ʵ��

��������������չʾ toSource() �������÷���

<script type="text/javascript">

function employee(name,job,born)
{
this.name=name;
this.job=job;
this.born=born;
}

var bill=new employee("Bill Gates","Engineer",1985);

document.write(bill.toSource());

</script>

������

({name:"Bill Gates", job:"Engineer", born:1985}) 

TIY