我有一个函数!
$(document).ready(function() {
$(".tstInfo").on("click",function(){
$.toast({
heading: 'Welcome to my Elite admin',
text: 'Use the predefined ones, or specify a custom position object.',
position: 'top-right',
loaderBg:'#ff6849',
icon: 'info',
hideAfter: 3000,
stack: 6
});
}); });
我想在 asp.net 中从代码后面调用它 请告诉我该怎么做。 提前致谢
最佳答案
你可以这样试试
protected void BtnClick(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "id",
"<script language='javascript'> $('.tstInfo').click();</script>", true);
}
关于javascript - 在后面的asp.net代码中调用类点击功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49319435/