上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: c#事件 委托: 1.类似观察者模式。 2.当某个对象(类),执行某个动作时,之前委托的事情会自动完成。 (如B,C订阅A的事件,当A执行某动作,B和C均会按照约定进行对应动作)//使用步骤: 1.定义 delegate委托类,event 事件 //首领A:举杯委托 public delegate 阅读全文
posted @ 2017-07-13 13:37 越过那个限制 阅读(172) 评论(0) 推荐(0) 编辑
摘要: namespace ConsoleApplication { class GenericDemo { public static void Test() { double[] numbers = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; PrintArrayInfo(number 阅读全文
posted @ 2017-07-13 10:25 越过那个限制 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 实现技术: 存储过程 ,零时表(3) 一句话说完 :把父级查询下来的子级ID 保存成零时表,并且将符合子级ID数据添加到另一张零时表。 同时清空数据时需要使用到一张零时表作为容器; alter PROCEDURE sel_sum@a int ASBEGINselect id,nodename ,pi 阅读全文
posted @ 2017-07-12 17:26 越过那个限制 阅读(446) 评论(0) 推荐(0) 编辑
摘要: Ajax直接请求普通文件存在跨域无权限访问的问题,甭管你是静态页面、动态网页、web服务、WCF,只要是跨域请求,一律不准;Web页面上调用js文件时则不受是否跨域的影响(不仅如此,我们还发现凡是拥有"src"这个属性的标签都拥有跨域的能力,比如<script>、<img>、<iframe>)实现原 阅读全文
posted @ 2017-07-11 17:32 越过那个限制 阅读(653) 评论(0) 推荐(0) 编辑
摘要: 1.继承Controller public class TestController : Controller2.编写控制器方法 // URL : test/Edit/1 [HttpPost]//http请求方式 public ActionResult Edit(int id, FormCollec 阅读全文
posted @ 2017-07-11 15:12 越过那个限制 阅读(520) 评论(0) 推荐(0) 编辑
摘要: IFNULL(expr1,expr2) 如果expr1不是NULL,IFNULL()返回expr1,否则它返回expr2。IFNULL()返回一个数字或字符串值。 select (case when a.checktype=0 then 'GO' else 'back' end ) checktyp 阅读全文
posted @ 2017-05-02 17:06 越过那个限制 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 使用的是google 的json转换jar import com.google.gson.JsonObject;import com.google.gson.JsonParser; import org.apache.commons.io.IOUtils; public void doPost(Ht 阅读全文
posted @ 2017-04-23 21:35 越过那个限制 阅读(213) 评论(0) 推荐(0) 编辑
摘要: #openwx_btn { border: 0px; background-color: rgb(145, 228, 86); border-radius: 1em; display: block; margin: 2em auto 0 auto; width: 12em; height: 3em; 阅读全文
posted @ 2017-04-21 11:23 越过那个限制 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 后端的数据需要返回简单的json数据: 发现通过双引号和单引号:“ { ‘name’:123 } ”的方式返回失败。 需要通过\转义里边的双引号: response.getWriter().write("{\"code\":401,\"msg\":\"错误原因\"}"); 阅读全文
posted @ 2017-04-21 09:25 越过那个限制 阅读(1143) 评论(0) 推荐(0) 编辑
摘要: 由于服务器的图片大小参差不齐,想要最符合的尺寸很难做到。 如何让图片大小自动适应: a场景: div 包着 img img {width: auto;height: auto;max-width: 100%;max-height: 100%;} b场景: 背景图片 style="background 阅读全文
posted @ 2017-04-20 16:16 越过那个限制 阅读(18571) 评论(0) 推荐(1) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页