Answer the question
In order to leave comments, you need to log in
How to make the base object the top level container?
The variant works, but only for the Object itself, not for its descendants. As far as I understand, the behavior I need is implemented by: , but this does not work:Object=document
Object.prototype=window
Object.prototype=window
var a={}
console.log(a.document)
//выведет "undefined"
//должно "#document"
Answer the question
In order to leave comments, you need to log in
Your goal is achievable in two ways:
The first will allow you to write as you ordered:
var a = {};
console.log(a.document);
window.__proto__.__proto__.__proto__ = null;
Object.prototype.__proto__.__proto__ = window;
var a = {};
console.log(a.document);
var a = {__proto__: window};
console.log(a.document);
There is a special mail function in php for this.
For example:
$mail = mail($yourEmail, $subject, $message,
"From: ".$name."\r\n"
."Reply-To: ".$email."\r\n"
."Content-type: text/html; charset=utf-8 \r\n"
."X-Mailer: PHP/" . phpversion());
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question