jquery通过attr取html里自定义属性原来这么方便啊
<script type="text/javascript">
function fangGouWuChe(obj) { //放入购物车
var sMat = $(obj).parent().parent().parent().parent().attr("material");
var sPrice = $(obj).parent().parent().find('em[class="sale-price"]').text();
var sCount = "1";
return addToCartRun(sMat, sPrice, sCount);
}
</script>