hlzyWeb/Admin/Weibo/timeline.aspx
(开头部分) 29KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ Page Title="好友的微博" Language="C#" MasterPageFile="~/Admin/AdminNew.Master" AutoEventWireup="true" CodeBehind="timeline.aspx.cs" Inherits="Hidistro.UI.Web.Admin.Shop.Timeline" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link rel="stylesheet" href="/admin/css/weibo.css">
<script src="../js/weiboHelper.js"></script>
<script>
$(function () {
InitTextCounter(300, "#txtContent", "#iLeftWords");
//加载用户最新微博
loaduserinfo();
loadStatuses(1);
$("#Homepage").click(function () {
$("#txtContent").val($("#txtContent").val() + ($(this).attr("gotourl"))).keyup();
});
$('#GoodsAndType').click(function () {
var Rand = Math.random();
$("#MyIframe").attr("src", "Goods.aspx?Rand=" + Rand);
$('#myIframeModal').modal('toggle').children().css({
width: '800px',
height: '700px'
})
$("#myIframeModal").modal({ show: true });
});
})
var set = 1;
function gotopage() {
$("#loading").css("display", "block");
set++;
loadStatuses(set);
}
function loaduserinfo() {
$.getJSON("../../API/WeiBoAPI.ashx?action=userinfo").done(function (d) {
ErrorAndIsAuthorized(d);
$("#friends_count").text(d.friends_count);
$("#followers_count").text(d.followers_count);
});
}
function loadStatuses(page) {
$.getJSON("../../API/WeiBoAPI.ashx?action=friends_timeline&page=" + page).done(function (d) {
if (parseInt(d.statuses.length) == 20) {
$("#pagediv").css("display", "");
}
if (d.statuses) {
for (var i in d.statuses) {
//$("#pic_urls").html('');
var status = d.statuses[i];
var tpl = $($("#statusTpl").html());
tpl.find('#lstimg').attr('src', status.user.profile_image_url);
tpl.find('#wbname').text(status.user.screen_name);
var userhomeurl = "http://weibo.com/" + status.user.id;
if ($.trim(userhomeurl) != "") {
tpl.find('#wbname').attr('href', userhomeurl);
后面还有 473 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
