location.href property vs. location.assign() method

김_리트리버·2021년 5월 12일
0

기타꿀팁

목록 보기
11/14

https://stackoverflow.com/questions/10302905/location-href-property-vs-location-assign-method?lq=1

둘다 새로운 url 로 이동하는 것은 같지만
test code 작성시에는 location.assign() 메서드 호출이 더 편해서
location.assign 을 사용하는게 나을 것 같다.

profile
web-developer

0개의 댓글