掃碼下載編程獅APP
<!DOCTYPE html> <html> <head> </head> <body> <span id="test">test</span> <script type='text/javascript'> var test = document.getElementById('test'); test.foo = function() { this.style.color = 'red' } test.foo() </script> </body> </html>
The code above is rendered as follows:
下載App
關(guān)注公眾號
Copyright©2023 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
聯(lián)系方式:
掃描二維碼
下載編程獅App
掃碼關(guān)注 領(lǐng)資料包