layui.layer.prompt重写原版prompt回调返回值失败目的:想重写prompt,结果layui.layer.prompt是异步的,导致直接执行了后续代码,返回值没办法回调。代码:
改async+Promise+await来实现