21,886
社区成员
发帖
与我相关
我的任务
分享
<button onclick="SetUrl()">test</button>
function SetUrl()
{
window.location.href="test.php?q=hello";
}
<button onclick="SetUrl()">test</button>
<script>
function SetUrl()
{
window.location.href="test.php?q=hello";
}
</script>