Window location.protocol attribute

protocol tayar da matan protocol na URL na yau, kuma kuma kamar kamar (

kukuriyar wannan protocol ita ce sabon kuskure, wanda ke nufin tsaika neman da neman dukkanin bayanai tsakanin kompyuterai.

tarihin

matan protocol na URL na yau:

let protocol = location.protocol;

sai sai samu

kalami

matan protocol属性:

location.protocol

tayar da protocol属性:

location.protocol = protocol

walin

walin baɗa
protocol kukuriyar URL na tsawon. misali:

matan

irin baɗa
字符串 当前 URL 的协议,包括冒号 (:)。

浏览器支持

所有浏览器都支持 location.protocol:

Chrome IE Edge Firefox Safari Opera
Chrome IE Edge Firefox Safari Opera
支持 支持 支持 支持 支持 支持