Calling Java inside JavaScript Function

后端 未结 8 976
时光取名叫无心
时光取名叫无心 2020-12-04 02:26

Please tell me if we can call java inside javascript function ?


    

        
8条回答
  •  遥遥无期
    2020-12-04 02:42

    Yes, you can. Use JSP expressions <%= %>. Example:

    
        AUI().use('aui-datepicker', function(A) {
            new A.DatePickerSelect({
                calendar : {
                    dates : [ '<%="1/1/1970" %>' ],
                }
            }).render('#myDatePicker');
        }); 
    
    

提交回复
热议问题