所以我在我的腳本var mystring = "123"
一個變量,我的網頁看起來像這樣的JavaScript檢查在HTML源
<body>
<div id="footer">
123
</div> </body>
我需要一個腳本來檢查,如果變量是一樣的頁腳內容,如果是不,取而代之。
就像這樣:
a="123";
if a == html.content.from.footer then
do nothing;
else
replace html.content.from.footer with a;
你試過寫什麼嗎? – imjared
你的英文很好。 – DOK