摘要: //日期格式化"2017-07-05" function formatTime(date) { var year = date.getFullYear(); var month = date.getMonth() + 1, month = month < 10 ? '0' + month : month; var day = date.getDate(), day = day < 10 ? '0' 阅读全文
posted @ 2019-10-24 14:49 怪先生 阅读(3616) 评论(0) 推荐(0) 编辑
摘要: //获取url的参数,支持中文和英文 function getQuery(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); ... 阅读全文
posted @ 2019-10-24 14:46 怪先生 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 代码配置编写 1、引用dll 2、代码编写配置 3、生成的目录 阅读全文
posted @ 2019-08-29 11:06 怪先生 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 输入 www.test.com、www.test.com/home 显示 www.test.com/home/index 阅读全文
posted @ 2019-08-29 10:54 怪先生 阅读(659) 评论(0) 推荐(0) 编辑
摘要: 判断一下 this.href 是否有链接地址,没有就不处理。否则页面也会刷新 阅读全文
posted @ 2019-07-11 17:26 怪先生 阅读(481) 评论(0) 推荐(0) 编辑
摘要: <input type="text" id="test" oninput='fromChange()'> 1、注册监听 $(document).on('input', '#test', function () {console.log($("#test").val() ); }); 2、事件监听 f 阅读全文
posted @ 2018-12-11 09:55 怪先生 阅读(1466) 评论(0) 推荐(0) 编辑
摘要: string ControllerInfo = ViewContext.RouteData.Values["controller"].ToString(); string Action = ViewContext.RouteData.Values["action"].ToString(); 阅读全文
posted @ 2018-11-19 20:01 怪先生 阅读(897) 评论(0) 推荐(0) 编辑
摘要: 1、获取input标签的值,方法: 根据input的name或者id获取其值,假如有:<input type='text' id='name' value=123> JQ中获取方法:$("#name").val();2、获取input标签的属性内容,方法: 如有:<input type='text' 阅读全文
posted @ 2018-11-07 11:55 怪先生 阅读(2962) 评论(0) 推荐(0) 编辑
摘要: 调用dll,程序有可能缺少微软程序的运行库 可下载一个微软的运行库 下载链接:https://pan.baidu.com/s/1FSNb_eFmFoKIhU23V3zj8Q 密码:fbzy 阅读全文
posted @ 2018-04-20 00:31 怪先生 阅读(1256) 评论(0) 推荐(0) 编辑
摘要: <%@ Application Codebehind="Global.asax.cs" Inherits="NHAPPAPI.MvcApplication" Language="C#" %> 阅读全文
posted @ 2018-01-23 13:23 怪先生 阅读(1757) 评论(2) 推荐(0) 编辑