- 博客(3)
- 收藏
- 关注
转载 mysql 存储过程中不能使用 return 的解决办法
mysql 的存储过程是不能使用 return 语句的,只有存储函数才有此功能。那么,有没有替代 return 的关键字呢? 没有! 像 exit, quit 之类的关键字全没有! 怎么办? 使用功能稍次一些的 leave 关键字吧,此关键字可以模仿 return 的行为。 举一个例子吧: SET FOREIGN_KEY_CHECKS
2012-02-10 13:03:43 14526
转载 window.close 不弹确认框
ie7,ie8上使用window.close()方法时,会弹出确认框是否要关闭。可以用下面的方法屏蔽window.opener=null; window.open('','_self'); window.close();
2012-02-02 17:30:43 760
转载 ScriptManager.RegisterStartupScript方法
如果页面中不用Ajax,cs中运行某段js代码方式可以是:Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "window.open('default2.aspx')");如果页面中使用了Ajax ,则上述代码即使执行也无效果。对这种情况我们通常采用:ScriptManager.RegisterStartupScri
2012-02-02 16:40:14 616
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人