我是 javascript/jquery 的新手,我在网上做了一些探索,但我不知道为什么以下内容无效:
var toggleSection = function(sectionName) {
// Do some Jquery work to toggle stuff based on sectionName string
// (concatenate sectionName with other text to form selectors)
};
$('#togglecont1').click(toggleSection("container1"));
我有什么明显的遗漏吗?提前致谢。