【发布时间】:2014-11-02 13:19:13
【问题描述】:
我正在寻找可以放入标准 HTML href 链接中的代码 - 一旦单击链接,将立即实时更新链接的一部分。
类似:
<a href="http://example.com/<?php code(); ?>/">Example</a>
第一次打印:
<a href="http://example.com/page1/">Example</a>
所以点击一次后,它会立即变为:
<a href="http://example.com/page1-clicked/">Example</a>
有人为此准备了一些简单的东西吗?
谢谢!
【问题讨论】:
-
使用 jquery 来做。
-
this 的可能重复项。在我发布的链接中检查您的答案。
标签: php html dynamic hyperlink onclick