關于點擊跳轉的問題
var back = function(){
??????cxt.beginPath();
? ? ? cxt.fillStyle = "#ccc";
? ? ? cxt.font = "14px Arial";
? ? ? cxt.fillText('返回',950,15);
? ? ? cxt.fill();
? ? ? cxt.closePath();
? ? ? cxt.strokeStyle = '#ccc';
? ? ? cxt.moveTo(985 ,5);
? ? ? cxt.lineTo(995,10);
? ? ? cxt.lineTo(985 ,16);
? ? ? cxt.lineWidth = 1;
? ? ? cxt.stroke();
}
back();
請問我怎么實現點擊“返回”跳轉到另外的頁面,謝謝
2018-08-01
<button onclick="back()"></button>
function back(){
????window.location.href="http://www.xianlaiwan.cn/qadetail/173921";
}?
2016-10-17
onclick