摘要:
//声明委托 private void DeterMineCal(MethodInvoker method) { if (InvokeRequired) { Invoke(method); } else { method(); } } //使用委托 DeterMineCal(()=>{ ....实现方法 });感觉这种写法很简单,也很方便。。。所以就贴出来了。。。 阅读全文
摘要:
前台: $('#txtzone').bind('blur', function () { if ($('#txtzone').val() != "") { $.ajax({ //异步请求开始 url: '../../ashx/isExistzone.ashx?zone_name=' + encodeURI(encodeURI($('#txtzone').val())), dataType: 'json', cache: false, success: function (s) { 阅读全文