method(){
func.call(this)
}
func(obj) {}
/// ...
method(){
fun(this)
}
[
'a' => 1,
'a' => 2,
'a' => 3,
]
<button onclick="moscow()">change</button>
<button id="some-id">change</button>
$(document).ready(function() {
function moscow () {
location.reload();
var text2 = '00000000000';
$('#phone').text(text2);
$('#phone').attr('href',text2);
}
$("#some-id").click(() => moscow())
});