0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ftlにおける値を取得時のjsとjavaの使い分け

Last updated at Posted at 2014-09-29

ftlにおいて、値の取得方法の使い分けで混乱したので書き留める。
使い分けで迷ったのはjavaとjsの二通り。

次の方法で使い分ける。

【java】
①全ユーザーで同じデータの場合。
②ページ読み込み時に取得する場合。

【js】
①ユーザごとに違うデータの場合。
②クリックなどのイベントが起きた場合。
(ページ読み込み時にいちいちajaxを叩くとスピードが落ちる。)
③全ユーザで同じデータでも変数が多くなる場合はjsを用いる場合もある。
(javaで保持する変数が多くなるとわかりづらい)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?