我有以下脚本正好包装一个元素:
.brandModelWrapper
但我需要它不仅包裹.brandModelView
,还包括 X = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
Y = [0.5717, 0.699, 0.7243, 0.5939, 0.5383, 0.5093, 0.7001, 0.589, 0.6486, 0.7152, 0.6805, 0.5688, 0.6133, 0.6041, 0.5676].
plt.xlabel('X')
plt.ylabel('Y'))
plt.title("Histogram")
xbins = [x for x in range(len(Xaxis))]
numBins = len(Xaxis)
plt.hist(Xaxis,xbins ,color='green',alpha=0.6)
plt.show()
plt.close()
,我怎么能这样做呢?
答案 0 :(得分:2)
使用逗号分隔的多个选择器:
var divs = $(this).find(".brandModelWrapper").add($(this).find(".brandModelView"));