我试图在用户点击复选框时隐藏div,并在用户取消选中该复选框时显示该div.HTML:
<div id="autoUpdate" class="autoUpdate">
content
</div>
Run Code Online (Sandbox Code Playgroud)
jQuery的:
<script>
$('#checkbox1').change(function(){
if (this.checked) {
$('#autoUpdate').fadeIn('slow');
}
else {
$('#autoUpdate').fadeOut('slow');
}
});
</script>
Run Code Online (Sandbox Code Playgroud)
我很难让这个工作.
是否可以在Google Sitemaps中指定URL元素的说明?
示例(请参阅description-tag):
<url>
<loc>http://www.example.com/dogs</loc>
<description>This page for dogs, you can find new products for dogs here.</description>
<changefreq>hourly</changefreq>
<priority>1.00</priority>
<image:image>
<image:loc>http://www.example.com/image.jpg</image:loc>
</image:image>
</url>
<url>
<loc>http://www.example.com/cats</loc>
<description>This page for cats, you can find new products for cats here.</description>
<changefreq>hourly</changefreq>
<priority>1.00</priority>
<image:image>
<image:loc>http://www.example.com/image.jpg</image:loc>
</image:image>
</url>
Run Code Online (Sandbox Code Playgroud)
谢谢!