来自萤火虫:
>>> $("form#commentform").serialize();
"username=&email=&comment=&verify="
>>> $("#commentform").serialize();
""
>>> $("form#commentform")
[form#commentform]
>>> $("#commentform")
[div#commentform]
>>> $("#commentform").length
1
这真的很奇怪,form#commentform
有效,但#commentform
没有,为什么?
答案 0 :(得分:2)