$("#ulToTab a").on("shown.bs.tab", function (e) {
var activeTab = $(e.target).text();
var previousTab = $(e.relatedTarget).text();
if ($(e.target).attr("href") == "#tab2") {
console.log("初始化产品服务");
}
})