posted @ 2017-12-05 20:53 valeb 阅读(137) 评论(0) 推荐(0)
摘要:
function (Data, url) { if (url == undefined || url == null || url == "") { url = "/Home/Result" } var temp_form = document.createElement("form"); ... 阅读全文
摘要:
var power = (function () { var cacheObj=[] ; return { get: function (key) { if (cacheObj.length === 0) { $.ajax({ url: "/Home/Power", ... 阅读全文
posted @ 2017-10-11 17:39 valeb 阅读(287) 评论(0) 推荐(0)
摘要:
1 public class CacheHelper 2 { 3 static System.Web.Caching.Cache Cache = HttpRuntime.Cache; 4 5 public static void Set(string key, object data) 6 { 7 阅读全文
posted @ 2017-10-07 12:50 valeb 阅读(152) 评论(0) 推荐(0)
摘要:
public static void Generator(out string key) { TripleDESCryptoServiceProvider des = (TripleDESCryptoServiceProvider)TripleDESCryptoServiceProvider.Create(); key = A... 阅读全文
posted @ 2017-09-27 15:42 valeb 阅读(165) 评论(0) 推荐(0)
摘要:
/// /// 生成验证码 /// public partial class OperateContext { #region 1.生成验证码 +string GenerateCode(int count, VCodeTypeEnum type) public string GenerateCode(int count, VCo... 阅读全文
posted @ 2017-09-27 00:49 valeb 阅读(151) 评论(0) 推荐(0)
摘要:
吃水不忘挖井人,如果对你有帮助,请说声谢谢。如果你要转载,请注明出处。谢谢! 异步提交时,出现图片不能上传。 起初我定格在 System.Web.Mvc 中。查询源码时,也是没有问题的。那问题出现在哪 里? 答案:JS jquery.unobtrusive-ajax.js 经查看,修改如下Demo: 阅读全文
posted @ 2017-09-24 18:15 valeb 阅读(349) 评论(0) 推荐(0)
摘要:
//settime($("#getPhoneCode"),60); function settime($obj, time) { if (time == 0) { $obj.attr("disabled", false); $obj.css("background", "#f38401").css("cursor", "pointer"); ... 阅读全文
posted @ 2017-07-25 18:10 valeb 阅读(674) 评论(0) 推荐(0)
摘要:
public virtual void Modify(T model, params string[] ProNames) { DbEntityEntry entry = db.Entry<T>(model); entry.OriginalValues.SetValues(model); // 没有 阅读全文
posted @ 2017-05-10 17:58 valeb 阅读(386) 评论(0) 推荐(0)
摘要:
放到 MVC Web 项目中。 placeholder 文本框中 提示的内容, class 属性 ,一般采用 Bootstrap 时 ,class 很好用 阅读全文
posted @ 2017-01-11 16:38 valeb 阅读(382) 评论(0) 推荐(0)
浙公网安备 33010602011771号