jQuery($("#ID").attr({ readonly: 'true' });//添加readonly属性 $("#id").attr("readonly":"readonly"); $("#id").removeAttr("readonly"); //去除readonly属性 );
分类:
Web程序 时间:
2015-09-10 15:43:19
阅读次数:
129
分享一个简单的简单的SQLHelper类,代码如下: 1 class SqlHelper 2 { 3 public static readonly string connstr = 4 ConfigurationManager.ConnectionSt...
分类:
数据库 时间:
2015-09-07 22:40:23
阅读次数:
299
1.createusergroup
addgroupname
permissions里面readonly写主机组
2.createuser
groups里面选上刚才添加的group
分类:
其他好文 时间:
2015-09-06 18:41:02
阅读次数:
157
1.使用const关键字声明常量字段和常量局部变量时,常量字段和常量局部变量不是变量且不能改变。==>常量在程序中是不能改变的,而变量是可以改变的。常量可以为数字、布尔值、字符串或 null 引用。不要创建常量来表示你需要随时更改的信息。不允许在常数声明中使用static修饰符。 2....
class MySqlHelper { //从配置文件读取连接字符串 private static readonly string connstr = ConfigurationManager.ConnectionStrings["connStrs"].Conne...
分类:
数据库 时间:
2015-09-05 17:49:40
阅读次数:
267
const和readonly都是只读的。但是const修饰的变量必须在声明时赋值。readonly修饰的变量可以在声明时或者构造函数里赋值。private const double pi=3.14;class A { private readonly int a; public A(int v) {...
分类:
Web程序 时间:
2015-09-02 20:33:16
阅读次数:
173
@Html.TextBoxFor(model => Model.MonthPlan, new Dictionary() { { "readonly", "true" } })
分类:
其他好文 时间:
2015-09-01 18:12:39
阅读次数:
120
UIButton的详细介绍:一、按钮具有的属性:@property(nonatomic,readonly)UIButtonType buttonType; //按钮类型@property(nonatomic,readonly,retain)NSString*currentTitle; //按钮当前文...
分类:
其他好文 时间:
2015-08-31 21:31:24
阅读次数:
167
1、所有控件都继承自UIView,UIView的常见属性如下:@property(nonatomic,readonly) UIView *superview;获得自己的父控件对象@property(nonatomic,readonly,copy) NSArray *subviews;获得自己的所有子...
分类:
移动开发 时间:
2015-08-31 21:17:07
阅读次数:
123
此@interface部分为类扩展(extension)。其被设计出来就是为了解决两个问题的,其一,定义类私有方法的地方。其二,实现public readonly,private readwrite的property(意思是在h头文件中定义一个属性对外是readonly的,但在类的内部希望是可读写的...
分类:
移动开发 时间:
2015-08-31 15:05:33
阅读次数:
155