IE9 SCRIPT1028:预期的标识符,字符串或数字 [英] IE9 SCRIPT1028: Expected identifier, string or number

查看:110
本文介绍了IE9 SCRIPT1028:预期的标识符,字符串或数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi, i'm working in MVC4 we are using 3'rd party plugin to view documents(jpeg,pdf) in screen that works fine in chrome,firefox and IE10 and IE11 but it produces Script error 1028 for IE9 and IE8 




documentViewer = new DocumentViewer({

           handlerUri: "DocumentViewer.axd",
           id: 'document-viewer',
           renderingDpi: 196,
           renderFormat: "jpeg",
           preferences: {
               toolbarVisible: true,
               visibleNavigationControls: {
                   firstPage: true,
                   prevPage: true,
                   nextPage: true,
                   lastPage: true,
                   pageIndicator: true,
                   gotoPage: true,
               }
               ,
               visibleZoomControls: {
                   fixedSteps: true,
                   zoomIn: true,
                   zoomOut: true,
               }
               ,
               visibleFileOperationControls: {
                   downloadAs:false,
                   open: false,
                   download: true,
                   print: false,
               }
           }
          ,
           events: {
               beforePageChange: function (currentPage, newCurrentPage, cancel) {
               },
               afterPageChange: function (currentPage) {
               },
               beforeZoomChange: function (zoomPercentage) {
               },
               afterZoomChange: function (zoomPercentage) {
               }
           }
       });







i'm getting error in the following line  
gotoPage: true,
},
Please anyone can help me

推荐答案

只需删除后面的逗号(,)最后一个属性为visibleNavigationControls,visibleZoomControls和visibleFileOperationControls属性



Just remove the comma (,) after the last property attributes for visibleNavigationControls, visibleZoomControls and visibleFileOperationControls

gotoPage: true




zoomOut: true




print: false


这篇关于IE9 SCRIPT1028:预期的标识符,字符串或数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆