String.strike() 會將字串套用刪除線格式,屬於舊式 HTML 呈現方式。
var str = 'old price'; str.strike();
現代網頁通常會使用 CSS 的 text-decoration 屬性來取代。
這個方法較少用於正式產品開發。