zoukankan      html  css  js  c++  java
  • js 和 c# 方法互调

    js访问c#代码

    1  js <script type="javascript"><%=test()%></script>

        c#  public void test(){...}

    2、C#调用前台JS方法 

    this.Page.ClientScript.RegisterStartupScript(this.GetType(), "js", "ShowMaterialManager('" + url + "');", true); 

     ShowMaterialManager为前台JS方法 

      

     执行顺序: 前台页面dom加载完毕-->执行调用的JS方法-->前台页面的Ready -->前台页面的OnLoad方法

    求人不如求己。吃得苦中苦,方为人上人。 失意时莫灰心,得意时莫忘形。
  • 相关阅读:
    #pragma
    STL~heap
    codeforces682A
    POJ1753(位操作和枚举)
    位运算
    getchar()(转)
    UVA2636
    UVA2639
    UVA2322
    UVa2521
  • 原文地址:https://www.cnblogs.com/goulash/p/3762474.html
Copyright © 2011-2022 走看看