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.
PHP スクリプトに ldap_search 関数があります。ログインしたユーザーからユーザー情報を取得します。それをjsonにエンコードし、これらの情報にCookieを設定しました。私の js では、jquery 関数 parseJSON を使用して、Cookie から js オブジェクトを作成しました。今、フィールドにユーザーの名前を出力したいと思います。どうすればそれを機能させることができますか?
編集: js からの出力を処理したい。
単純、
console.log(オブジェクト[0].名前[0]);