日期:2014-05-17 浏览次数:20566 次
<input type="text" id="txt" /> <a href="./" id="next">下一页</a> <script type="text/javascript"> document.getElementById('next').onclick = function() { var txt = document.getElementById('txt').value; if (txt.length > 0) { var url = this.href; if ((url.split('?')).length > 1) url += '&'; url += '?ep=' + txt; } this.href = url; } </script>