jQuery(function($) {
$("#add").on("click", function() {
var boxs = $(":checkbox[name='haitai']:checked")
if (!boxs.length) {
alert("请选择商品!")
} else {
var bao = ""
boxs.each(function(i, dom) {
bao += $(dom).attr("value") + "\n"
})
localStorage.car = localStorage.car ? bao + localStorage.car : bao
alert("成功加入购物车!")
}
})
})
</script>
CGPoint point = containerView.contentOffsetCGFloat zy = point.y
CGFloat py = rect.origin.y + rect.size.height
if (py - zy <0) {
return FALSE
}
CGRect screenRect = containerView.frame
CGFloat by = screenRect.size.height + zy
if (rect.origin.y >by) {
return FALSE
}
return TRUE
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)