私はjQueryのプログラミングが初めてです。外部の HTML ページを解析して、モバイル アプリに表示したいと考えています。
function mealSearch() {
$.get('http://www.web-page.de/page.html', function(html){
html = $(html.replace(/<img[^>]*>/g,""));
console.log((html));
});
写真なしで、必要なhtmlページ全体を取得します。
今、特別なdivにある部分だけを取得したいですか?
置換後に .find を追加すると、次のエラーが表示されます: has no method find
ご協力いただきありがとうございます