Change the js, running under the window environment to the global environment, and the error in executing the script under nodejs is as follows:

window.navigator.userAgent.toLowerCase ();
A code error is as follows:
Cannot read property "userAgent" of undefined

Mar.04,2021

node you can't get UA information through window.navigator.userAgent , you can use req.headers ['user-agent'] to get

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5aa09-455dc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5aa09-455dc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?