2016-01-14 28 views

回答

2

RiotJS將opts對象中的src屬性轉換爲名爲riotSrc的屬性,原因是在標籤上使用src=""時,不允許非法服務器請求。

<child> 
    <div>This is the original property: {opts.origin}</div> 
    <div>This is the computed property: {opts.riotSrc}</div> 
</child>