0
是有辦法,我只能包含一個這樣的腳本的一小部分:包括一個腳本的使用javascript只有一小部分
<?php
$url = 'https://www.example.com';
$content = file_get_contents($url);
$first_step = explode('<div class="HelloWorld">' , $content);
$second_step = explode('</div class="HelloWorld">' , $first_step[1]);
echo $second_step[0];
...但是,僅僅使用Javascript,而不是PHP?
感謝
使用jquery.fn.html方法$( '.Hellwold')。HTML() –