最近几天在学习jQuery ...关于前台调用 [webMethod]方法  $.ajax({})方法使用。

 $.ajax({
                        type: "POST",
                        ontentType: "application/json; charset=utf-8",  //注意这一行一定要写。否则报错。。
                        url: "HHTSConfiguration.aspx/ValidateCommonScreen",// 页面/方法
                        data: "{}",
                        dataType: "text",
                        success: function(result) {
                            if (result.indexOf("true") >= 0) {
                                ShowConfigurationWindow();
                            }
                            else {
                                alert("<%=strCommonScreenParam %>");
                                return;
                            }
                        }
                    });

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-27
  • 2022-03-04
  • 2022-12-23
  • 2021-08-10
  • 2021-08-19
  • 2021-08-31
  • 2022-03-03
相关资源
相似解决方案