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.
我只是想问一下如何刷新 iframe 中的特定 php 脚本。我不想刷新整个 iframe,因为它会跳转到 iframe src,但我想刷新我当前正在使用的脚本以查看我应用的更改。每次我尝试重新加载 iframe 时,它总是跳转到 iframe src。我怎样才能做到这一点?谢谢!
iFrame 只是一个添加其他页面的窗口。尝试在您要刷新的页面中添加此内容
<meta http-equiv="refresh" content="0;URL=**linkToRefresh.php**" />
在此示例中,您需要在文件linkToRefresh.php中的代码底部添加该行
我有一个带有输入字段和保存按钮的 jsf 表单,如下面的代码所示。我想要实现的是,当单击保存按钮时,应使用正则表达式模式验证输入。如果验证失败,则不应显示保存确认对话框。否则会显示保存确认对话框,让用户选择是否保存。
在下面的代码中,尽管有条件 onclick="if(#{conditionOK}),但始终显示对话框。我不希望显示确认对