3

私は2つの画像オブジェクトを持っていますak whiteimg。ユーザーが 1 つの画像の領域をクリアしていて、2 秒ごとに 2 つの画像を比較したい。

<script src="http://huddle.github.io/Resemble.js/resemble.js"></script>


var timer=setInterval(function(){
resemble(ak).compareTo(whiteimg).onComplete(function(){
console.log(data);
},2000);

私は何か間違ったことをしていますか?また、画像が読み込まれるのを待ってから操作を実行しています。

コンソールのエラー: Uncaught SyntaxError: Unexpected end of input (index:1)

4

0 に答える 0