The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.
Send messages to iframe using iframeEl.contentWindow.postMessage
Recieve messages using window.addEventListener('message')
| import ast | |
| from cStringIO import StringIO | |
| import sys | |
| INFSTR = '1e308' | |
| def interleave(inter, f, seq): | |
| seq = iter(seq) | |
| try: | |
| f(next(seq)) |
| var stringify = function(obj, prop) { | |
| var placeholder = '____PLACEHOLDER____'; | |
| var fns = []; | |
| var json = JSON.stringify(obj, function(key, value) { | |
| if (typeof value === 'function') { | |
| fns.push(value); | |
| return placeholder; | |
| } | |
| return value; | |
| }, 2); |
| var run = 0; | |
| var mails = {} | |
| total = 3000; //滚动次数,可以自己根据情况定义 | |
| function getEmails (cont) { | |
| var friendbutton=cont.getElementsByClassName("_ohe"); | |
| for(var i=0; i<friendbutton.length; i++) { | |
| var link = friendbutton[i].getAttribute("href"); | |
| if(link && link.substr(0,25)=="https://www.facebook.com/") { |
Emoji | Code | Commit Type
| <?php | |
| /** | |
| * The table Printer class has no dependencies and generates an array (strings) | |
| * out of an object array / countable and the child properties that should be printed given by an array (strings) | |
| */ | |
| class TablePrinter | |
| { | |
| /** | |
| * @param \Countable|array|object[] $historyItems |
| <?php | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'array_indentation' => true, | |
| 'array_syntax' => ['syntax' => 'short'], | |
| 'binary_operator_spaces' => [ | |
| 'default' => 'single_space', |
| <?php | |
| /** | |
| * The table Printer class has no dependencies and generates an array of strings | |
| * out of an array of objects or arrays and the child properties that should be printed given by an array of strings | |
| * | |
| * Should result in something like the following: | |
| * +------+---------------+----------------+---------------+ | |
| * | id | name | col_name_three | col_name_four | | |
| * +------+---------------+----------------+---------------+ |
| 1) Se tiver o Docker instalado, remova! | |
| 2) Habilite o WSL no Windows 10 | |
| dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
| dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | |
| 3) Habilitar o WSL para a versão 2 | |
| wsl --set-default-version 2 | |
| 4) Instalar o Ubuntu na Microsoft Store |