读书人

-个函数运行的有关问题?/

发布时间: 2013-03-14 10:33:15 作者: rapoo

-个函数运行的问题?/
本帖最后由 hcnet_net 于 2013-03-10 22:15:21 编辑

  $(function () {
$("#tb").sorttable({
ascImgUrl: "../images/up.png",
descImgUrl: "../images/down.png",
ascImgSize: "10px",
descImgSize: "10px",
onSorted: function (cell) {
// alert(cell.index() + " -- " + cell.text());
}
});
});



这段函数为什么在 html 运行很常正。

复制到CGI 脚本就运行无运行,提示:
t.cgi: command substitution: line 4: syntax error near unexpected token `('
t.cgi: command substitution: line 4: `function () {'

错误还请大家帮忙看看如何解决,


[解决办法]
美元符号$在cgi脚本中是关键字,表示对变量的引用

读书人网 >JavaScript

热点推荐