所以我的脚本中有一个变量,我var mystring = "123"的网页看起来像这样
<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;