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.
我正在使用 JQXHR 将数据发布到我的服务器,然后将其添加到数据库中。当我向数据库添加内容时,我想返回刚刚添加到数据库中的文章的 ID。有没有办法在 Responsetext 被发送回客户端之前添加一些东西?
响应文本是您的 php 文件的输出。这意味着您可以在代码中执行以下操作:
echo $id;