php如何弹出提示框:
< ?PHP
echo "< script language=
\"JavaScript\">alert
(\"你好\");< /script>";
?>
//或者
< ?PHP
print "< script language=
\"JavaScript\">alert
(\"你好\");< /script>";
?>
php确认取消弹出框怎么设置:
public void isHan() { AlertDialog.Builder builder=new AlertDialog.Builder(this); builder.setTitle("小韩提示"); builder.setIcon(android.R.drawable.ic_dialog_info); builder.setPositiveButton("确定", new DialogInterface.OnClickListener(){ //点击确定执行 @Override public void onClick(DialogInterface arg0, int arg1) { }}); builder.setNegativeButton("返回", new DialogInterface.OnClickListener(){ //点击取消执行 @Override public void onClick(DialogInterface arg0, int arg1) { }}); AlertDialog b = builder.create(); b.show();//显示对话框 }
Copyright @ 2015-2022 海外生活网版权所有 备案号: 沪ICP备2020036824号-21 联系邮箱:562 66 29@qq.com