js如何判断某个函数是否执行完?给函数做一个返回值,然后判断返回值就行了。function closeMsg(){var retVal=false$("msgdiv").style.width=parseInt($("msgdiv&2023-03-04JavaScript160