URL.密码
语法
string = object.password; object.password = string;
值
A USVString
.
Examples
var url = new URL('https://anonymous:flabada@developer.mozilla.org/en-US/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.