以下の例ではfileを読み込んだ直後からa要素にloop回数を表示しています。これだけでは当然何の意味も無い処理です
<input type=file oninput="files[0].arrayBuffer().then(b=>oninput(++a.innerHTML))"><a id=a>
応用すると下らないanimationを表示したり、gameを作ったり…できるかな? あえてこんな方法にする必要ないだろうと突っ込みたくなりますが…。
Go to list of users who liked
以下の例ではfileを読み込んだ直後からa要素にloop回数を表示しています。これだけでは当然何の意味も無い処理です
<input type=file oninput="files[0].arrayBuffer().then(b=>oninput(++a.innerHTML))"><a id=a>
応用すると下らないanimationを表示したり、gameを作ったり…できるかな? あえてこんな方法にする必要ないだろうと突っ込みたくなりますが…。
Register as a new user and use Qiita more conveniently
Go to list of users who liked