<form action='http://site.ru/testpost.php' method='POST'>
<select name='test[xx]'>
<option value='1'>1
<option value='2'>2
</select>
<select name='test[yy]'>
<option value='1'>1
<option value='2'>2
</select>
<input type='submit'>
</form>
<?php
print_r($_POST);
?>
Array ( [test] => Array ( [xx] => 1 [yy] => 1 ) )
git checkout -b tmp
git checkout <your branch>
// Пусть this - [object MyObject]
function log() {
console.log(this);
};
var obj = new MyObject2();
obj.on("ready", () => log()); // [object MyObject];
// Пусть this - [object MyObject]
function log() {
console.log(this);
};
var obj = new MyObject2();
obj.on("ready", log); // [object MyObject2];