我需要将关联 ID 附加到指向某个 URL 的所有链接的末尾。
这是我所拥有的,但我无法让它工作。
(这将在 WordPress 中)
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("a[href*=doitbest]").click(function() {
this.append("?memberid=5705&associate=true");
});
});
</script>
有什么想法吗?