前台方法:
<script type="text/jscript"> var k = "test"; var s = '<%=ShowMsg(" ' + k + ' ")%>'; alert(s);</script>
后台方法:
public string ShowMsg(string msg)
{ return msg;}