readonly, readwrite:是控制属性的访问权限,readonly只生成getter方法,其他类是无法修改其值的。readwrite是会同时生成getter和setter方法,其他类可以修改其值。 assign, retain, weak, strong, copy,unsafe_...
分类:
其他好文 时间:
2015-04-16 23:52:57
阅读次数:
355
服务器基本控件:1 textbox text:获取或设置文本 textmode:单行/多行/密码。。。 wrap:是否换行 rows:行数 columns:列数,宽度 backcolor :背景色 readonly: 是否只读2 label lit...
分类:
Web程序 时间:
2015-04-16 21:45:57
阅读次数:
160
1. in c#readonly can be delayed to initialize in constructor.2. in c++totally no readonly.Many people have mastered c++ before c#. They are the manage...
分类:
编程语言 时间:
2015-04-14 00:33:59
阅读次数:
158
iOS8中UIViewController中新增presentationController属性,@property (nonatomic,readonly) UIPresentationController *presentationController NS_AVAILABLE_IOS(8_0)...
分类:
其他好文 时间:
2015-04-13 20:43:34
阅读次数:
109
readonly 关键字与const 关键字不同。const 字段只能在该字段的声明中初始化。readonly字段可以在声明或构造函数中初始化。因此,根据所使用的构造函数,readonly字段可能具有不同的值。另外,const字段是编译时常量,而readonly字段可用于运行时常量**。const关...
小菜解决小问题:
标签的只读无外乎两种,readonly 和disabled
readonly:只读 后台可以取到数据
disabled:不可用,正如他的翻译 不但只读+从后台得不到数据
那么问题来了,select 和 redio这两个标签根本没有readonly 这个属性,所以想要只读只能用disabled这个属性,取不到值 怎么办?
小技巧:添加一个隐藏域...
分类:
其他好文 时间:
2015-04-13 11:04:25
阅读次数:
99
经常访问的表数据存入内存的代码示例,此代码只有在第一次使用ProductList时才会加载数据,然后一直存储于内存中,想更新缓存数据只有重启网站或IIS且使用该变量时才会更新数据,所以适用于数据更新频率不高的数据存储。private static readonly object _objProduc...
分类:
其他好文 时间:
2015-04-10 19:42:07
阅读次数:
115
1 //获取ip物理地址的接口地址 2 public static readonly string ipUrl = "http://ip.taobao.com/service/getIpInfo.php?ip="; 3 4 public void ProcessR...
public class yms_Entity where T :DbContext { private static T _instance; public static readonly object SyncObject = new object(); ...
分类:
其他好文 时间:
2015-04-07 19:10:04
阅读次数:
113
input{background-color:expression(this.readOnly==true?"#EEEEEE":"#FFFFFF");}input[readonly]{background-color:#EEEEEE;}
分类:
Web程序 时间:
2015-04-07 18:59:02
阅读次数:
224