开发者社区> 问答> 正文

请问asp.net后台怎么调用前台写好的JavaScript函数

前台

    <script type="text/javascript">
        $(".btn").click(function(){
            is_hide();
        })
        function is_hide(){ $(".alert").animate({"top":"-40%"}, 300) }
        function is_show(){ $(".alert").show().animate({"top":"45%"}, 300) }
        </script>
后台
 protected void submit_Click(object sender, EventArgs e)
        {
            string username = this.username.Value;
            string password = this.password.Value;
            if ((username == "123")&&(password == "123"))
            {
                //怎么调用is_show()?????
            }
        }

展开
收起
小旋风柴进 2016-03-18 10:30:27 2247 0
1 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
JavaScript面向对象的程序设计 立即下载
Delivering Javascript to World 立即下载
编程语言如何演化-以JS的private为例 立即下载