0
监听我是新来的JavaScript/jQuery和我已经做了网络上一些戳,但我不明白,为什么下面是无效的:注册命名的功能与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"));
有什么明显的我失踪了吗?提前致谢。
感谢一堆,这完美的作品。 – Marcus 2010-03-27 23:31:11