在我的页面上,我有这个ajax调用:
$.getJSON(
"@Url.Action("GetSchedulers")",
{ start: start, end: end },
function(data) {
fillCalendar(data);
}
);
Run Code Online (Sandbox Code Playgroud)
一切正常,除非我尝试在Zscaler代理后面访问它,然后浏览器返回一个CORS错误:
"No 'Access-Control-Allow-Origin' header is present on the requested resource."
Run Code Online (Sandbox Code Playgroud)
请求网址是https://gateway.zscaler.net/auD?origurl={my_url}.
有没有人知道如何在没有被zscaler过滤的情况下发送请求?
我的清单视图:
<ListView ItemTemplate="{StaticResource GridViewItemTemplate}" Name="gridView_movies">
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top"/>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
</ListView>
Run Code Online (Sandbox Code Playgroud)
列表的数据模板:
<DataTemplate x:Key="GridViewItemTemplate">
<StackPanel Orientation="Vertical" >
<Image Width="250" Height="290" Source="{Binding Image}"/>
<TextBlock Text="{Binding Title}" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="20"/>
</StackPanel>
</DataTemplate>
Run Code Online (Sandbox Code Playgroud)
当我加载这个,所有项目都显示在一行,我的问题是,我怎么能每行只显示3个项目而不是一行中的所有项目.
感谢您的关注.