多參數(shù)的兩種表述有什么區(qū)別?
?$(".test2").after('<p style="color:blue">after,在匹配元素之后增加</p>', '<p style="color:blue">多參數(shù)</p>')
與
?$(".test2").after('<p style="color:blue">after,在匹配元素之后增加</p><p style="color:blue">多參數(shù)</p>')
兩種輸出的結(jié)果是一樣的,本質(zhì)上是否有區(qū)別呢?
2019-06-05
看輸出效果 before添加的元素在前,after添加元素在后
2019-02-23
沒有區(qū)別