【发布时间】:2017-10-17 21:23:12
【问题描述】:
我下载了这个项目: https://github.com/Tasarinan/editor-framework
我遵循所有步骤: 1)我安装了 Polymer 和 Electron(以及其他:phyton、nodejs ecc。) 2)运行所有命令: sh utils/npm.sh 安装 凉亭安装 gulp 更新电子 sh utils/install-builtin.sh sh demo.sh
项目运行良好,但是当我打开网格面板时出现以下错误: Uncaught SyntaxError: Unexpected token)(第 1 行) Uncaught SyntaxError: Unexpected token)(第 28 行) 电子抄送
(() => { // (line 1)
//*************************
Editor.polymerElement({
properties: {
debugInfo: {
type: Object,
value: () => { return { // (Line 28)
xAxisScale: 0,
xMinLevel: 0,
xMaxLevel: 0,
yAxisScale: 0,
yMinLevel: 0,
yMaxLevel: 0,
}; },
},
这是代码的链接: https://github.com/cocos-creator-packages/ui-grid/blob/master/widget/pixi-grid.js
我看不懂这些命令 ()=>{} 我要添加什么库??
抱歉我的英语不好,感谢您的帮助。
【问题讨论】:
标签: javascript polymer editor electron