0
私はこの機能を持っている:それは働いてJquery、このセレクタの重複を避けるにはどうすればよいですか?
$('#barcode').JsBarcode($('#barcode').attr("data-barcode"), {
format:"EAN"
displayValue:true
fontSize:10
height: 22
marginLeft: 10
marginRight: 10
marginTop: 3
marginBottom: 0
})
が、私は繰り返しを避けたいです。私はthis
と$this
を試してみます...
'$ this'と' this'は関数のコンテキスト内でのみ機能します。 –