Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Cookie は JavaScript 関数を記憶できますか?
関数は文字列にシリアル化できないため、関数を Cookie に格納することはできません。ただし、この関数をシリアル化しても何の役にも立たないように見えます。なぜそれをする必要があるのですか?認証状態を保存しようとしている場合は、機能を保存しようとする代わりにそれを行う必要があります。