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.
我正在测试一个 Ajax JQuery 脚本,说请稍候,它会将数据提交到 php 文件。但是,为了测试“请稍候”是否有效,是否有办法让 php 文件回显一些数据但延迟返回?
是:(功能睡眠)
<?php $numOfSeconds = 10; sleep($numOfSeconds); do_stuff();