📜  HTML | DOM inputEncoding 属性

📅  最后修改于: 2021-10-29 06:37:12             🧑  作者: Mango

inputEncoding属性返回用于解析文档的字符编码。此属性没有任何默认值。

句法:

document.inputEncoding

参数:

  • HTML DOM inputEncoding属性不需要任何参数。

    返回值:

  • HTML DOM inputEncoding属性返回一个代表文档字符编码的字符。

    例子:

    
    
      
    
        
          HTML | DOM inputEncoding Property
        
      
    
      
    
        

          Click the button to check the       encoding of this document     

                   

    输出 :
    点击按钮前:

    点击按钮后:

    支持的浏览器: DOM inputEncoding() 属性支持的浏览器如下:

    • 谷歌浏览器
    • 浏览器 9.0+
    • 火狐
    • 歌剧 15.0+
    • 苹果浏览器