https://segmentfault.com/search?q=搜搜;当点击按钮时,应该执行了window.location.href="searcg?q"=搜索条件;请问这时候需要对"searcg?q"=搜索条件 进行url编码吗? 查看完整描述