http://www.cnblogs.com/zhoufeng/archive/2010/06/09/Javascript.html

 

注意:

1。没有返回值的函数, 再JS里面是不能调用的,操作数据库的方法,只能用ajax来调用

 

2. 掉后台函数,传参的办法

 

    public string ss(string ssValue) {
            return ssValue;
        }

上面是C#,下面是JS

    <script>
        function alertValue(id) {
            var s = '<%=ss("' + id + '") %>';
            alert(s);
        }
    </script>

 

    <input />

相关文章:

  • 2021-07-16
  • 2021-12-22
  • 2021-10-16
  • 2021-09-17
  • 2022-12-23
猜你喜欢
  • 2021-08-13
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案