Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> JavaScript

ความแตกต่างระหว่าง window.location และ document.location


ตาม W3C ทั้งสองตัวเป็นสิ่งเดียวกัน

แต่ควรใช้ window.location แทน document.location เสมอ