摘要: var data = (from s in db.books join t in db.teachers on s.Auther equals t.Code where t.Name == "s1mple" select s).ToList(); 阅读全文
posted @ 2021-07-19 22:43 ♩♪♫♬ 阅读(76) 评论(0) 推荐(0)
摘要: 1.int search = (int) Enum.Friday; 2. var books =(from s in context.books where s.Day == search select s ).ToList(); 阅读全文
posted @ 2021-07-19 22:35 ♩♪♫♬ 阅读(209) 评论(0) 推荐(0)
摘要: $(".form-control").not(".panel-update-control").prop("disabled",true); 阅读全文
posted @ 2021-07-19 21:15 ♩♪♫♬ 阅读(66) 评论(0) 推荐(0)
摘要: decodeURIComponent(q.replace(/\+/g, ""); 带全局标志/g,全局替换 无全局标志/g,只替换第一个匹配的返回结果字符串 阅读全文
posted @ 2021-07-09 20:27 ♩♪♫♬ 阅读(169) 评论(0) 推荐(0)
摘要: <ul id="list"> <li><label><input type="checkbox" value="1">1 </label></li> <li><label><input type="checkbox" value="2"> 2</label></li> <li><label><inp 阅读全文
posted @ 2021-01-07 21:47 ♩♪♫♬ 阅读(113) 评论(0) 推荐(0)
摘要: function clearNoNum(obj){ obj.value = obj.value.replace(/[^\d.]/g,""); //清除“数字”和“.”以外的字符 obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个. 清除多余的 阅读全文
posted @ 2017-08-01 10:18 ♩♪♫♬ 阅读(182) 评论(0) 推荐(0)