jQuery attr vs prop?
问题 Now this isn\'t just another What\'s the difference question , I have done some tests(http://jsfiddle.net/ZC3Lf/) modifying the prop and attr of <form action=\"/test/\"></form> with the output being: 1) prop Modification test Prop: http://fiddle.jshell.net/test/1 Attr: http://fiddle.jshell.net/test/1 2) Attr Modification test Prop: http://fiddle.jshell.net/test/1 Attr: /test/1 3) Attr then Prop Modification test Prop: http://fiddle.jshell.net/test/11 Attr: http://fiddle.jshell.net/test/11 4)