Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
5つの画像があるアプリで作業していますが、これらの画像を特定の位置に移動したいので、タッチスタートイベントの開始時に画像のIDを取得したいと思います。私はjavascriptを使用しています。
jQueryを使用し、タッチスタートイベントが画像にバインドされている場合
$('img').bind('touchstart', function() { var imageId = this.id; });