Re: [問題] Javascrip onClick參數
題外話,到底需不需要「/>」?用 W3C validation 跑的結果:
Below is a list of the warning message(s) produced when checking your
document.
Line 85, Column 35: NET-enabling start-tag requires SHORTTAG YES
<input type='button' value='test'/>
The sequence <FOO /> can be interpreted in at least two different ways,
depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/'
terminates the tag <FOO (with an implied '>'). However, since many browsers
don't interpret it this way, even in the presence of an HTML 4.01 Strict
DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve
its use solely for those written in XHTML.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.166.130.232
推
05/04 23:26, , 1F
05/04 23:26, 1F
→
05/04 23:29, , 2F
05/04 23:29, 2F
推
05/04 23:44, , 3F
05/04 23:44, 3F
→
05/05 05:11, , 4F
05/05 05:11, 4F
→
05/05 05:12, , 5F
05/05 05:12, 5F
→
05/05 05:12, , 6F
05/05 05:12, 6F
→
05/05 05:13, , 7F
05/05 05:13, 7F
→
05/05 05:14, , 8F
05/05 05:14, 8F
→
05/05 08:51, , 9F
05/05 08:51, 9F
→
05/05 08:51, , 10F
05/05 08:51, 10F
→
05/05 08:51, , 11F
05/05 08:51, 11F
→
05/05 08:54, , 12F
05/05 08:54, 12F
推
05/05 11:46, , 13F
05/05 11:46, 13F
→
05/05 11:47, , 14F
05/05 11:47, 14F
→
05/05 12:01, , 15F
05/05 12:01, 15F
→
05/06 07:48, , 16F
05/06 07:48, 16F
討論串 (同標題文章)
完整討論串 (本文為第 13 之 13 篇):
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章