How can I generate Dynamic Javascript?

后端 未结 4 863
生来不讨喜
生来不讨喜 2020-12-14 12:42

I render a page using YUI. and depending on the user I need to change how it is rendered. This change is not something that can be parametrized, it is drastic and different

4条回答
  •  [愿得一人]
    2020-12-14 13:16

    A little bit of elaboration here would most certainly help in getting you a more descript and helpful answer. That in mind, though, you could easily just use functions declared inside an if statement to provide distinctly varied experiences for different users.

    A very basic example:

    
    

提交回复
热议问题