导入jq库
通过parent获取父元素
children获取子元素
$(".make-order").click(function(e) {
var theli =$(this).parent('li').children('a').html() ;
})
导入jq库
通过parent获取父元素
children获取子元素
$(".make-order").click(function(e) {
var theli =$(this).parent('li').children('a').html() ;
})