How can I generate Dynamic Javascript?

后端 未结 4 866
生来不讨喜
生来不讨喜 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:26

    You can probably create two separate Java script files, and include the required file, depending upon the user type.

    Pseudocode

    If user_type is One
        
    else
        
    End If
    

提交回复
热议问题