stringaccount="a";
stringb="b";
ScriptManager.RegisterStartupScript(this, this.GetType(), "", "Call('"+account+"','"+b+"');", true);
Call是前台的js,如果要传参,记得一定得'"+a+"'这种字符的。如果"+a+"就出错了。因为javascript没有int类型的,有var类型的。
stringaccount="a";
stringb="b";
ScriptManager.RegisterStartupScript(this, this.GetType(), "", "Call('"+account+"','"+b+"');", true);
Call是前台的js,如果要传参,记得一定得'"+a+"'这种字符的。如果"+a+"就出错了。因为javascript没有int类型的,有var类型的。