随笔分类 -  Web

DataTable去重复方法
摘要://去掉重复行DataTable table=new DataTable();DataView dv = table.DefaultView;table = dv.ToTable(true, new string[] { "name", "code" });此时table 就只有name、code无... 阅读全文

posted @ 2015-01-14 18:17 taian_xiaojia 阅读(280) 评论(0) 推荐(0)

解决弹出的窗口window.open会被浏览器阻止的问题
摘要:方法-: 在js中不采用window.open方法,采用window.location.href = url;方法二:自定义方法:function openwin(url) { var a = document.createElement_x("a"); a.setAttribute("href", url); a.setAttribute("target", "_blank"); a.setAttribute("id", "openwin"); document.body. 阅读全文

posted @ 2013-08-29 09:33 taian_xiaojia 阅读(189) 评论(0) 推荐(0)

导航