μλ¬
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/
Deprecated 1.8 | jQuery API Documentation
Add the previous set of elements on the stack to the current set. Utility method to filter and/or chain Deferreds. Bind an event handler to the “error” event, or trigger that event on an element. Bind an event handler to the “load” event, or trigge
api.jquery.com
stackoverflow.com/questions/37738732/jquery-3-0-url-indexof-error
jquery 3.0 url.indexOf error
I am getting following error from jQuery once it has been updated to v3.0.0. jquery.js:9612 Uncaught TypeError: url.indexOf is not a function Any Idea why?
stackoverflow.com