Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果满足条件,如何停止脚本执行?没有别的办法可以吗?例如:
if(data == 'false') { stop } rest of the function...
您可以退出函数:
if (data == 'false') { return false; }