我试图在我的网站上显示传单,它只是不会显示,我正在关注http://leafletjs.com/examples/quick-start.html的简单教程,并且瓷砖不加载只是得到一张灰色的地图,这就是我在页面上的内容
<head>
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
<style type="text/css">
#map {
height: 180px;
width: 500px;
}
</style>
</head>
<body>
<div id="map">
</div>
<script>
var map = L.map('map').setView([51.505, -0.09], 13);
L.tileLayer('http://{s}.tile.cloudmade.com/API-key/997/256/{z}/{x}/{y}.png', {
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://cloudmade.com">CloudMade</a>[…]',
maxZoom: 18
}).addTo(map);
</script>
</body>
Run Code Online (Sandbox Code Playgroud)
多数民众赞成在地图上只显示一个灰色区域有没有人让这个工作?我正在使用Internet Explorer 10,但地图也没有显示o firefox或chrome.
我已经实现了无限滚动并将其与实体一起使用,但我想将其传输到 SQL Server,但不知道如何这是我在实体中的代码。
var page = id ?? 1;
const int recordsPerPage = 10;
var skipRecords = page * recordsPerPage;
var listOfProducts = _data.Products.Where(x => x.ProductLine != null);
return listOfProducts.
OrderBy(x=>x.Name).
Skip(skipRecords).
Take(recordsPerPage).ToList();
Run Code Online (Sandbox Code Playgroud)
我还有其他东西在工作,我只是不知道如何实现跳过,这就是我对 SQL Server 的操作
Select top 10 *
from products
where ProductLine != null
order by name
Run Code Online (Sandbox Code Playgroud)
应该是这样的,如果were在第1页,那么它应该显示top 10 (1 x 10),如果were在第2页,那么它应该显示top 20。