欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

JavaScript toSource() 方法

定義和用法

toSource() 方法返回表示對(duì)象源代碼的字符串。

語(yǔ)法

object.toSource()

提示和注釋

注釋:該方法在 Internet Explorer 中無(wú)效。

實(shí)例

下面的例子向您展示 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