66651
πŸ‘€
66651
  • λΆ„λ₯˜ 전체보기 (57)
    • note (28)
    • log (13)
    • error (9)
    • etc (7)

λΈ”λ‘œκ·Έ 메뉴

  • ν™ˆ
  • νƒœκ·Έ
  • λ°©λͺ…둝

ν‹°μŠ€ν† λ¦¬

hELLO Β· Designed By μ •μƒμš°.
66651

πŸ‘€

error

[jQuery] Uncaught TypeError: url.indexOf is not a function μ—λŸ¬

μ—λŸ¬

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

 

μ €μž‘μžν‘œμ‹œ (μƒˆμ°½μ—΄λ¦Ό)
    'error' μΉ΄ν…Œκ³ λ¦¬μ˜ λ‹€λ₯Έ κΈ€
    • [Webpack] Cannot find module 'sass' μ—λŸ¬
    • [Gulp] Task never defined: default 였λ₯˜
    • [JS] DevTools failed to load source map: … κ²½κ³  μ§€μš°κΈ°
    • [JS] e.touches[0] μ—μ„œ Uncaught TypeError: Cannot read property '0' of undefined μ—λŸ¬
    66651
    66651
    always awake

    ν‹°μŠ€ν† λ¦¬νˆ΄λ°”