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)