常用js

window.open的頁面如何刷新(父頁面)上層頁面

window.opener.location.reload(); 

js 取小數後面的一位小數:

parseInt(val.average_score*10)/10

js 返回上個頁面並刷新 

<a href="javascript:history.go(-1);location.replace(document.referrer);"></a>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章