如何使用JavaScript從另一個網頁獲取元素innerHTML
?從另一個網頁獲取元素的內部html?
例子:
<script>
$.get(url, function(response) {
var $response = $(response); // Code not working from this line
alert($response.find('.result').html()); // get innhtml of element by class name from response
});
</script>
提醒您的回覆看看你在收到什麼 –