直接用echo语句输出 alert(“对话框文字”),代码如下: [php]IGVjaG8gPHNjcmlwdD4gYWxlcnQoIuWvueivneahhuaWh+WtlyIpPC9zY3JpcHQ+[/php]