来源:https://stackoverflow.com/questions/50429649/how-to-wait-for-a-jquery-toggle-to-finish-before-running-another-function 标签 javascript jquery callback promise method-chaining