原创 JQuery中attr()和prop()方法的區別

1、操作對象不同 很明顯,attr和prop分別是單詞attribute和property的縮寫,並且它們均表示"屬性"的意思。 不過,在jQuery中,attribute和property卻是兩個不同的概念。attribute表示

原创 餓了嗎第七章better-scroll 中$els 相關問題

在Vue2.0中,v-el 和 v-ref 合併爲一個 ref 屬性了,可以在組件實例中通過 $refs 來調用。這意味着 v-el:my-element 將寫成這樣:ref="myElement",v-ref:my-component