2014-07-01 68 views
-1

我使用appgyver,当试图连接类固醇我得到一个“意外的数学”错误 这是什么意思?以及如何解决它?意外的数学错误

steroids.config.location = http://localhost/index.html 
steroids.config.tabBar.enabled = true 
steroids.config.tabBar.tabs = [ 
    { 
     title: "Index" 
     icon: "icons/[email protected]" 
     location: "http://localhost/index.html" 
    }, 
{ 
     title: "DeviceInfos" 
     icon: "icons/[email protected]" 
     location: "http://localhost/DeviceInfo.html" 
    }, 
    { 
    title: "Test" 
    icon: "icons/[email protected]" 
    location : "http://localhost/tutorial.html" 
    } 
] 
steroids.config.tabBar.tintColor = "#123456" 
steroids.config.tabBar.tabTitleColor = "#654321" 
steroids.config.tabBar.tabTitleShadowColor = "#333333" 
steroids.config.tabBar.selectedTabTintColor = "#099900" 
steroids.config.tabBar.backgroundImage = "images/[email protected]" 

steroids.config.drawers = 
    left: 
    id: "leftDrawer" 
    location: "http://localhost/left.html" 
    showOnAppLoad: true 
    widthOfDrawerInPixels: 200 
    right: 
    id: "rightDrawer" 
    location: "http://localhost/right.html" 
    showOnAppLoad: false 
    widthOfDrawerInPixels: 200 
    options: 
    centerViewInteractionMode: "Full" 
    closeGestures: ["PanNavBar", "PanCenterView", "TapCenterView"] 
    openGestures: ["PanNavBar", "PanCenterView"] 
    showShadow: true 
    stretchDrawer: true 
    widthOfLayerInPixels: 0 

steroids.config.navigationBar.tintColor = "#888888" 
steroids.config.navigationBar.titleColor = "#345612" 
steroids.config.navigationBar.titleShadowColor = "#998822" 

steroids.config.navigationBar.buttonTintColor = "#998822" 
steroids.config.navigationBar.buttonTitleColor = "#345612" 
steroids.config.navigationBar.buttonShadowColor = "#888888" 

问题是在这个页面我想是因为删除HTML页面,即使错误停留

+0

您是否尝试过通过您的代码注释掉它的一些部分,然后从中找到确切的代码行? – Shadow9043

+0

是的,我试过了,我找不到错误来自哪里 –

回答

0

你的问题是此行

steroids.config.location = http://localhost/index.html 

这应该是

steroids.config.location = "http://localhost/index.html" 

没有引号将该值解释为某种数学方程式(因为在路径上的斜杠),这将可以理解地导致错误。