我知道前一个为可读写,后一个为只读。对么?

解决方案 »

  1.   

    因为我觉得如果是这样那只要一个ContentEditable就够了吧。
    应该不太一样
      

  2.   

    另外,javascript的TDC数据绑定可以往dataSRL里写东西么?
      

  3.   

    判断元素是否是可编辑的
    ID   为“foo”的元素是否可以被编辑:  
       
    返回是bool类型
    result=foo.isContentEditable;   处于可编辑状态
    contentEditable=true
      

  4.   

    从字面上都可以理解,前面是判断,返回值是true或false
    后者是用来设置属性的.
      

  5.   


    isContentEditable Property 
    ---------------------------
    Retrieves the value indicating whether the user can edit the contents of the object.SyntaxHTML N/A 
    Scripting [ bCanEdit = ] object.isContentEditable Possible ValuesbCanEdit Boolean that receives one of the following values.false The content cannot be edited. 
    true The content can be edited. 
     
    The property is read-only. The property has no default value.CONTENTEDITABLE Attribute | contentEditable Property
    ----------------------------------------------------
    Sets or retrieves the string that indicates whether the user can edit the content of the object.SyntaxHTML <ELEMENT CONTENTEDITABLE = sCanEdit... >  
    Scripting object.contentEditable(v) [ = sCanEdit ] Possible ValuessCanEdit String that specifies or receives one of the following values.inherit Default. Content's ability to be edited by user is inherited from object's parent. 
    false Content cannot be edited by the user. 
    true Content can be edited by the user. The property is read/write. The property has a default value of inherit.