Uniapp: TypeError: Cannot read property ‘apply‘ of undefined (H5 does not report an error, but the real machine runs with an error)

When the real machine is running, the console reports an error:

[JS Framework] Failed to execute the callback function:
TypeError: Cannot read property ‘apply’ of undefined

it is recommended to check whether the function in settimout | setinterval is written in full callback function:
before modification:

after modification:

no error after modification

Read More: