• js执行服务器端事件


     <script language="javascript" type="text/javascript">
            
    function check()
            {
                $.ajax({
                            type: 
    "POST",
                            url: 
    "xxx.aspx",
                            data: 
    "aa="+aa,
                            success: 
    function(msg){
                                
    if(msg=="OK")
                                {
                                    action();
                                }
                                
    else
                                {
                                    
    if(confirm("请确认是否继续?"))
                                    {
                                        action();
                                    }
                                }
                            }
                        });
            }
            
    function action()
            {
                document.getElementById(
    "<%= btn.ClientID %>").click();
            }


    作者:青羽
  • 相关阅读:
    RestTemplate的异常:Not enough variables available to expand
    WebApplicationContext类的作用
    select动态绑定vue.js
    spring的 @Scheduled的cron表达式
    Spring使用webjar
    ThreadLocal基本原理及运用
    mybatis choose标签的使用
    @RequestBody和@RequestParam区别
    js遍历 for-of
    MySql 模糊查询
  • 原文地址:https://www.cnblogs.com/tenghoo/p/1894488.html
Copyright © 2020-2023  润新知