μλ¬
Uncaught TypeError: url.indexOf is not a function...
μμΈ
load() λ©μλλ 1.8 λ²μ μ΄νλ‘ deprecated λμλ€.
ν΄κ²°
jQueryμ load() λ©μλλ₯Ό μ¬μ©ν λΆλΆμ΄ μλ€λ©΄ μλμ κ°μ΄ on() λ©μλλ‘ λ³κ²½νλ€.
// μ
$(window).load(function() { ... });
// ν
$(window).on('load', function() { ... });
μ°Έκ³
https://api.jquery.com/category/deprecated/deprecated-1.8/
stackoverflow.com/questions/37738732/jquery-3-0-url-indexof-error