刚开始接触JavaScript,很多不懂,翻了下手边的书也没有找到这段代码的具体意思。
<script type="text/javascript">
_initApp(
{"data":[
["document","文档",
"https:\/\/docs.google.com\/document\/d\/1gfb0c_D92fYELp2t0-Q9kOGC55upnSJFBRFQFXvxCZRnzQ\/edit?rm=demo&hl=zh-CN&newui=true","保存文档"],
["spreadsheet","电子表格","https:\/\/docs.google.com\/spreadsheet\/ccc?key=tYQDGuXWTgobvS9964tROJnLs&rm=demo&authp=1&hl=zh-CN&newui=true",
"保存电子表格"],
["presentation","演示文稿","https:\/\/docs.google.com\/presentation\/d\/12a20zI67eSVGbeszup5HuF7bIZajnylCRog40wMXa5GdEQ\/edit?rm=demo&hl=zh-CN&newui=true",
"保存演示文稿"],
["drawing","绘图","https:\/\/docs.google.com\/drawings\/d\/1KJ9GbuqDb7rApU1QmNVDqJi6Py05utwohQxR0O4-HW4T_w\/edit?rm=demo&hl=zh-CN&newui=true",
"保存绘图"]],
"sid":"69d57de0eac2925f",
"kai":60}
);
</script>
请问下这是说 在里面调用_initApp()函数吗,但是我没有看到这个函数的定义。望赐教
------解决方案--------------------
执行一个函数_initApp,中间是一个object类型参数
至于函数的定义可能在js文件中,看看该页面是否引用了其他js文件;
还有就是从后台传递来的js代码(程序员一般不会这样做)
------解决方案--------------------