08 2021 档案

js 验证攻击字符串 过滤
摘要:1 var Sstr = ["and","or","exec","execute","insert","select","delete","update","alter","create","drop","count","chr","char","asc","mid"," 阅读全文

posted @ 2021-08-20 14:23 张不胖 阅读(166) 评论(0) 推荐(0)

showDialogue(); 子窗口调用父窗口的方法
摘要:1 <script type="text/javascript"> 2 function lay() { 3 if (!!window.ActiveXObject || "ActiveXObject" in window) { 4 rs = window.showModalDialog('Displ 阅读全文

posted @ 2021-08-16 09:53 张不胖 阅读(412) 评论(0) 推荐(0)

用js写一个弹出层方法
摘要:需求:需要在页面上弹出一个层,类似一个自定义的MessageBox。 先在js文件中定义一个方法: 1 function qq_lay() {}; 2 qq_lay.prototype.open = function(h, w, t, url) { 3 var popBox = document.g 阅读全文

posted @ 2021-08-16 09:50 张不胖 阅读(419) 评论(0) 推荐(0)

在dt或者ds中排序查询 DataTable.AsEnumerable()
摘要:1 protected void Main() 2 { 3 DataSet ds=new DataSet(); 4 5 dt = ds.Tables[0]; 6 var tablequery = dt.AsEnumerable().OrderBy(a => a.Field<int>("level") 阅读全文

posted @ 2021-08-12 16:11 张不胖 阅读(824) 评论(0) 推荐(0)

导航