2017年3月15日
摘要: 代码比较简单,不废话,直接上代码: 要引入命名空间:using System.Net.Http; 阅读全文
posted @ 2017-03-15 15:14 ymworkroom 阅读(451) 评论(0) 推荐(0) 编辑
  2017年3月8日
摘要: 在win8以前的系统,我们在用bat的方式安装服务时,直接用下面的语句就可以了: %windir%\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe xxxx.Service.exenet start xxxxpause 但是在win8以后的系统, 阅读全文
posted @ 2017-03-08 11:47 ymworkroom 阅读(131) 评论(0) 推荐(0) 编辑
  2017年3月3日
摘要: 在非IE下,使用XMLHttpRequest 不能跨域访问, 除非要访问的网页设置为允许跨域访问。 将网页设置为允许跨域访问的方法如下: Response.AddHeader("Access-Control-Allow-Origin", "*"); 或指定域名下可以访问: Response.AddH 阅读全文
posted @ 2017-03-03 15:37 ymworkroom 阅读(325) 评论(0) 推荐(0) 编辑
  2011年9月7日
摘要: jQuery获取 Select选择的Text和Value:语法解释:1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项 时触发2. var checkText=$("#select_id").find("option:selected").text(); //获取Select选择的Text3. var checkValue=$("#select_id").val(); //获取Select选择的Value4. var che 阅读全文
posted @ 2011-09-07 16:47 ymworkroom 阅读(265) 评论(0) 推荐(0) 编辑