SetTimeout in android webview does not take effect

  node.js, question

setTimeout(()=>{

console.log("i am test")
 },3000)

It doesn’t work in Android webview.

The problem has been solved, thank you. It is the problem of the developers on Android’s side, and the timer has been cleared.

It’s not that I don’t support itsetTimeoutBut does not supportlambdaExpression because this isES6Specification for

图片描述

Please use:

setTimeout(function(){
 console.log("i am test");
 }, 3000);