意外的字符串常量Javascript

时间:2015-05-24 15:39:37

标签: javascript jquery

{name:'Second section',fields:['Column_x0020_2', 'Column_x0020_3'],mouseOver:'This is the second section',sectionStyle:",clickFunction: ’secondSectionClick(this)’}],settings:{bgColor: '#8EB4E8',hoverColor: '#FFF68F',selectedColor: '#C6E2FF',formBgColor: '#C6E2FF'},clickFunctionShared: ’clickFunctionShared(this)’};

这是什么语法错误?我正在尝试为sharepoint列表建立手风琴。请帮忙

1 个答案:

答案 0 :(得分:1)

在那一行中有很多语法错误。这是我对你实际想要实现的目标的最佳猜测。

{
    name: "Second section",
    fields: ["Column_x0020_2", "Column_x0020_3"],
    mouseOver: "This is the second section",
    sectionStyle: "",
    clickFunction: function () {
        secondSectionClick(this);
    },
    settings: {
        bgColor: "#8EB4E8",
        hoverColor: "#FFF68F",
        selectedColor: "#C6E2FF",
        formBgColor: "#C6E2FF"
    },
    clickFunctionShared: function () {
        clickFunctionShared(this);
    }
};