0
簡單的問題,我希望......角 - 如何強制在頁面加載進行檢查
如何使頁面加載第一無線電與下面的HTML檢查收音機嗎?
<div class="app-margin-bottom app-margin-left">
<input type="radio"
value="pdf"
ng-model="resource.type"
ng-click="enableUrlInput()"
name="resourceType"
required>
<span class="app-margin-right">PDF</span>
<input type="radio"
name="resourceType"
ng-model="resource.type"
ng-click="enableUrlInput()"
value="url"
required> URL
</div>
我試過使用checked作爲attr,但這會被忽略。我也玩過將resource.type設置爲'pdf'並且使用ng檢查的指令。
http://stackoverflow.com/questions/5592345/how-to-select-a-radio-button-by-default –
感謝好友但檢查不起作用 –
你還試過檢查=「檢查」? –