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.
我想做的是创建两个超链接,两个链接都将它们带到 xx.php。
所以我想要的是,如果有人点击链接 1,它会向他们显示 echo "hello";如果单击链接二,则显示 echo "Hi";
但是这两个语句都在 something.php 上
问候,
然后将此代码添加到您所谓的 something.php
1)链接1
<a href="xxx.php?link=1>Link 1 </a>
2) 链接 2
<a href="xxx.php?link=2>Link 2 </a>
然后在 xxx.php
做这个
<?php if ($_GET['link'] == "1") { echo "hello"; } if ($_GET['link'] == "2") { echo "hi"; } ?>
问题在于“p:ajax event="rowDblselect" listener="#{companyBean.update()}" ...”,当我第一次双击时,方法“update()”被调用一次(完美!),但