Ext.getDoc().on('keydown',function(e){ if(e.getKey() == 8 && e.getTarget().type =='text' && !e.getTarget().readOnly){ }else if(e.getKey() == 8 && e.ge ...
分类:
Web程序 时间:
2017-10-27 15:57:00
阅读次数:
177
比起 Angular 的依赖注入, core 的相对简单许多, 容易明白 所有 provider 都在 startup 里配置. controller 就通过 constructor 来注入就可以了. provider 有 3 个级别 AddSingleton AddScoped AddTransi ...
分类:
Web程序 时间:
2017-10-27 15:26:53
阅读次数:
251
新建DBHelpercs类 class DBHelpercs { public readonly static string StrConn = "Data Source=.;Initial Catalog=BoardroomManager;User ID=sa;pwd=123456"; } //单 ...
分类:
其他好文 时间:
2017-10-26 20:01:32
阅读次数:
236
1.编写html步骤 第一步:新建一个记事本.(以.html结尾) 第二步:右击选择打开方式为文本文档 第三步:编写内容 <html> <head></head> <body> hello html! </body> </html> 第四步:用浏览器打开查看内容.2.HTML的基本结构 <html> ...
分类:
其他好文 时间:
2017-10-25 21:42:03
阅读次数:
190
问题 如何在 ASP.NET Core 2.0 应用程序中读取全局配置项? 答案 首先新建一个空项目,并添加两个配置文件: 1. appsettings.json 2. appsettings.Development.json Visual Studio会自动识别两者的关系,并在解决方案层次结构中展 ...
分类:
Web程序 时间:
2017-10-25 11:17:19
阅读次数:
736
一、设置表单的readonly属性 问题:但是readonly属性对radio、select、checkbox这三个表单不起什么作用 二、设置表单的disabled属性 问题:设置了disabled属性后,后台读取不到数据 办法: 1、设置disabled属性,并把表单值存入hidden隐藏域中 2 ...
分类:
其他好文 时间:
2017-10-16 18:06:59
阅读次数:
286
JavascriptExecutor js1 = (JavascriptExecutor) driver; //处理时间弹出框选择时间 js1.executeScript("document.getElementById('wbinterviewdate').readOnly=false;"); / ...
分类:
其他好文 时间:
2017-10-16 14:56:11
阅读次数:
112
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.SqlClient;using System.Configura ...
分类:
其他好文 时间:
2017-10-16 13:46:59
阅读次数:
175
lock 的目的很明确:就是不想让别人使用这段代码,体现在多线程情况下,只允许当前线程执行该代码区域,其他线程等待直到该线程执行结束;这样可以多线程避免同时使用某一方法造成数据混乱。 一般定义如下: private static readonly object obj = new object(); ...
目的:避免对象的重复创建 单线程具体的实现代码 /// <summary> /// 私有化构造函数 /// </summary> public class Singleton { private Singleton() {//构造函数可能耗时间,耗资源 } public static Singlet ...