日期:2014-05-17 浏览次数:20414 次
$(function () {//$("#hits").load("/Articles/ViewTimes/45"+"?"+new Date().valueOf());
//$(function() {$("img", $(".articleContent")).each(function() { var maxWidth = 650; if (this.width > maxWidth) { this.height = this.height * (maxWidth / this.width); this.width = maxWidth; } });});
<script type="text/javascript">
$(function () {//$("#hits").load("@Url.Action("ViewTimes", "Articles", new RouteValueDictionary { { "id", Model.CurrentArticle.Id } })"+"?"+new Date().valueOf());
window.setTimeout(function () { $.post('@Url.Action("UpdateHit", "Articles")', { _id: "@Model.CurrentArticle.Id" }); }, 5000);
});
//$(function() {$("img", $(".articleContent")).each(function() { var maxWidth = 650; if (this.width > maxWidth) { this.height = this.height * (maxWidth / this.width); this.width = maxWidth; } });});
</script>
<script type="text/javascript">
$(function () {//$("#hits").load("/Articles/ViewTimes/45"+"?"+new Date().valueOf());
window.setTimeout(function () { $.post('/Articles/UpdateHit', { _id: "45" }); }, 5000);});
//$(function() {$("img", $(".articleContent")).each(function() { var maxWidth = 650; if (this.width > maxWidth) { this.height = this.height * (maxWidth / this.width); this.width = maxWidth; } });});
</script>