2009-10-08 47 views

回答

3

$('#hat').attr('re');

會得到它

$('#hat').attr('re', 'blah'); 

將其設置爲

2

如果要更新重屬性的值簡單地寫:

$('#hat').attr('re', 'newValue'); 
+0

我如何獲得價值? – TIMEX 2009-10-08 22:09:02

+0

的值將是$('#hat')。attr('re') – 2009-10-08 22:46:22

相關問題