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.
いくつかのhtmlスクリプトを返すデータベースを呼び出しています。htmlタグ(入力タグなど)が、ページにhtmlをレンダリングせずに、これらのhtmlスクリプトを「id」または「value」に保持する方法はありますか?
HTMLをbase64でエンコードし、必要なときにデコードできます
jQueryのデータ関数を使う
$("#myInput").data("long-html", "your_data_here");