0

通常i++、任意の JS 変数に対して行うことで値をインクリメントできます。

このjQueryコードに似たことができますか:

$this.data('numOfOccurrences', $this.data('numOfOccurrences') + 1 );

これは機能しません:

$this.data('numOfOccurrences')++; 
4

0 に答える 0