假設我有這樣的HTML:如何抓取隨機混合輸入和段落的內容
請注意!這是一個在Jade
p Dear Lorem ipsum,
p Lorem Ipsum is simply dummy text of the printing and typesetting
input(type="text", placeholder="phone/mail")
| on [HERE]
input(type="text", placeholder="date")
| and identified the debt as [HERE]
input(type="text", placeholder="lorem")
| . bled it to make a type specimen book. It has survived not only five centuries, but also the leap into.
p dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknow
input(type="text", placeholder="mediums of communication", value="Messaging Service")
| den-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites
p Thank you for your cooperation.
p Sincerely,
button#send(value="submit")
我將如何,在$(「#發送」)。點擊,收集所有,這樣的投入在裏面很好地滑落的段落。
例如,我想知道如何編寫一個函數,以上所有作爲輸入,輸出:
[
"Dear Lorem ipsum,",
"Lorem Ipsum is simply dummy text of the printing and typesetting 555-1234 on [HERE] some date and identified the debt as [HERE] this is inputted text. bled it to make a type specimen book. It has survived not only five centuries, but also the leap into.",
"dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknow this is an inputted medium of communication den-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites",
"Thank you for your cooperation.",
"Sincerely"
]
精美地工作。 – bzupnick