当前位置: 代码迷 >> ASP.NET >> js里头拼字符串 @Model.VirDir + "views[*0].swf," + @Model.FlvCount + "}"
  详细解决方案

js里头拼字符串 @Model.VirDir + "views[*0].swf," + @Model.FlvCount + "}"

热度:9870   发布时间:2013-02-25 00:00:00
js里边拼字符串 @Model.VirDir + "views[*,0].swf," + @Model.FlvCount + "}"

js里边"{/Library/1/swf/views[*,0].swf,1}"  想拼字符串,但是好像里边不支持下边这么写

@Model.VirDir + "views[*,0].swf," +  @Model.FlvCount + "}"




SwfFile:  "{/Library/1/swf/views[*,0].swf,1}" ,






全部:


@{
    ViewBag.Title = "Show";
}

<h2>Show</h2>


@model Library 
@section Header{


}

<script type="text/javascript" src="/Scripts/js/flexpaper_flash.js"></script>
<div style="position:relative;left:10px;top:200px;">
        <p id="viewerPlaceHolder" style="width:660px;height:553px;display:block">Document loading..</p>
        
         <script type="text/javascript">
             var fp = new FlexPaperViewer(
 '/FlexPaperViewer',
 'viewerPlaceHolder', { config: {
     SwfFile:  "{/Library/1/swf/views[*,0].swf,1}" ,
     Scale: 0.8,
     ZoomTransition: 'easeout',
     ZoomTime: 0.5,
     ZoomInterval: 0.05,
     FitPageOnLoad: false,
     FitWidthOnLoad: false,
     FullScreenAsMaxWindow: false,
     ProgressiveLoading: true,
     MinZoomSize: 0.2,
     MaxZoomSize: 5,
     SearchMatchAll: false,
     InitViewMode: 'Portrait',
     PrintPaperAsBitmap: false,
     ViewModeToolsVisible: true,
     ZoomToolsVisible: true,
     NavToolsVisible: true,
     CursorToolsVisible: true,
     SearchToolsVisible: true,
     localeChain: 'zh_CN'

 }
 });
        </script> 
</div>



------解决方案--------------------------------------------------------
你将你拼字符串的那段js贴出来看下。
------解决方案--------------------------------------------------------
@string.Format("{{{0}views[*,0].swf,{1}}}", Model.VirDir, Model.FlvCount)
  相关解决方案
本站暂不开放注册!
内测阶段只得通过邀请码进行注册!