请问有谁知道<span data-getfrom="[value]"> - <span>中的“data-getfrom="[value]"”是什么意思
因为我用了firebug看见别人的网站用了这样的东西。
该标签下面还有一个
<div> <a href="javascript:void(0)" rel="AAA">AAA</a> <a href="javascript:void(0)" rel="BBB">BBB</a> <a href="javascript:void(0)" rel="CCC">CCC</a> <a href="javascript:void(0)" rel="DDD">DDD</a></div
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><script type="text/javascript" src="jquery-1.7.1.min.js"></script><script>$(function(){ $("div a").click(function(){ $("span[data-getfrom=\\[value\\]]").html($(this).attr("rel")) })})</script></head><body><div> <a href="javascript:void(0)" rel="AAA">AAA</a> <a href="javascript:void(0)" rel="BBB">BBB</a> <a href="javascript:void(0)" rel="CCC">CCC</a> <a href="javascript:void(0)" rel="DDD">DDD</a></div><span data-getfrom="[value]"> - <span></body></html>