$.cookie is not a function typeerror

前端 未结 4 471
甜味超标
甜味超标 2020-12-20 12:14

What does this error mean and how do I fix it?

TypeError: $.cookie is not a function
[Break On This Error]   

$($.cookie(\"inputFocus\")).focus()

4条回答
  •  猫巷女王i
    2020-12-20 12:46

    It means the library that's supposed to have that function is not loaded. But you can set a cookie using javascript, here:

    https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie

提交回复
热议问题