URL:password 属性
语法
js
string = object.password;
object.password = string;
值
A USVString
.
Examples
js
var url = new URL(
"https://anonymous:flabada@developer.mozilla.org/zh-CN/docs/Web/API/URL/password",
);
var result = url.password; // Returns:"flabada"
规范
Specification |
---|
URL Standard # dom-url-password |
浏览器兼容性
BCD tables only load in the browser
参见
- The
URL
interface it belongs to.