1. 程式人生 > >window.location.href無法跳轉

window.location.href無法跳轉

1、原因:把window.location.href放到form表單裡時無法跳轉

2、解決:在onclick事件裡新增return false阻止冒泡:onclick="window.location.href='XXXXX.do';return false;"