Java:网络编程

一、因特网地址

  InetAddress类:实现主机名和因特网地址之间的转换。

    InetAddress address=InetAddress.getByName(String);返回一个InetAddress实例

    InetAddress[] address=InetAddress.getAllByName(host);获取所有主机的地址。

    InetAddress address=InetAddress.getLocalHost();获取本地主机的地址。


结果为:

一、Socket(套接字)

  连接原理:

  Java:网络编程

1、Socket客户端:

  Socket s=new Socket(ip,port);打开一个套接字,它是网络编程中的一个抽象概念,负责启动该程序内部和外部之间的通信。如果连接失败,将会抛出一个UnknownHostException异常;如果存才其他问题,将会抛出IOException异常。

  InputStream inStream=s.getInputStream();用于接收数据。
  OutputStream outStream=s.getOutputStream();用于发送数据。

2、套接字超时

  有两种超时情况:

    1):从套接字读取信息时,在有数据可供访问之前,读操作将会被堵塞。如类似in.nextLine();

      解决办法:调用setSoTimeout方法设置一个超时值。即调用s.setSoTimeout(1000);

    2):Socket(String host,int port)会一直堵塞,直到建立了到达机主的初始连接为止。(实例化Socket时会堵塞)

      解决办法:先构建一个无连接的套接字,然后再使用一个超时来进行连接的方法。即s.connect(new InetSocketAddress(host,port),timeout);

3、Socket服务器:

  它可以向客户端发送消息,一旦启动服务器程序,它便等待某个客户端连接到它的端口。ServerSocket用于建立套接字。

  ServerSocket s=new ServerSocket(port);创建一个端口
  Socket incoming=s.accept();告诉服务器不停等待,直到有客户端连接到这个端口,该方法会返回一个Socket对象,用这个对象得到输入、输出流。
  InputStream inStream=incoming.getInputStream();接收数据
  OutputStream outStream=incoming.getOutputStream();发送数据

  如果通过套接字发送文本,可以将流转换成扫描器和写入器。

    Scanner in=new Scanner(inStream);
  PrintWriter out=new PrintWriter(outStream,true);
  System.out.println("hello....");向客户端发送消息

  最后要关闭连接进来的套接字。

     incoming.close();关闭套接字 

 一个简单的服务器向客户端发送数据报的例子1:

 package socket;
import java.net.*;
public class server {
public static void main(String[] args)throws Exception{
DatagramSocket server=new DatagramSocket(3000);
String str="hello";
DatagramPacket packet=new DatagramPacket(str.getBytes(),str.length(),InetAddress.getLocalHost(),9000);
server.send(packet);
server.close();
}
}
package socket;
import java.net.*;
import java.io.*;
public class client {
public static void main(String[] args)throws IOException{
byte[] buf=new byte[1024];
DatagramPacket packet=new DatagramPacket(buf,1024);
DatagramSocket client=new DatagramSocket(9000);
client.receive(packet);
String str=new String(buf,0,packet.getLength());
System.out.println(packet.getAddress().getHostName()+":"+str);
client.close();
}
}

结果为:Feng:hello

例子2:简单的聊天设计

  服务器端:

 package socket;

 import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket; import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField; @SuppressWarnings("serial")
public class Server3 extends JFrame{
static JTextArea area;
JTextField field;
JButton button;
static PrintStream writer;
public Server3(){
this.setTitle("服务器");
this.setSize(400,500);
area = new JTextArea(25,30);
area.setEditable(false);
field = new JTextField(20);
button = new JButton("提交");
JPanel panel = new JPanel();
JScrollPane sp = new JScrollPane(area);
this.add(sp,BorderLayout.CENTER);
panel.add(field);
panel.add(button);
this.add(panel,BorderLayout.SOUTH);
this.setVisible(true);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); button.addActionListener(new ActionListener(){ @Override
public void actionPerformed(ActionEvent e) {
String text = field.getText();
writer.println(text);
area.append("我:"+text+"\n");
field.setText("");
}
});
}
public static void main(String[] args) throws Exception {
Server3 s = new Server3();
ServerSocket server = new ServerSocket(8899);
System.out.println("开始监听...");
Socket socket = server.accept();
InetAddress address = socket.getInetAddress();
String name = address.getLocalHost().getHostName();
System.out.println(name+"已连接");
BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
writer = new PrintStream(socket.getOutputStream(), true);
while (true) {
String line = null;
line = reader.readLine();
if (line != null) {
area.append("客户端:"+line+"\n");
} }
} }

  客户端:

 package socket;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.net.Socket; import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField; public class Client3 extends JFrame{ static JTextArea area;
JTextField field;
JButton button;
static PrintWriter writer;
public Client3(){
this.setTitle("客户端");
this.setSize(400,500);
area = new JTextArea(25,30);
area.setEditable(false);
field = new JTextField(20);
button = new JButton("提交");
JScrollPane sp = new JScrollPane(area);
JPanel panel = new JPanel();
this.add(sp,BorderLayout.CENTER);
panel.add(field);
panel.add(button);
this.add(panel,BorderLayout.SOUTH);
this.setVisible(true);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); button.addActionListener(new ActionListener(){ @Override
public void actionPerformed(ActionEvent e) {
String text = field.getText();
writer.println(text);
area.append("我:"+text+"\n");
field.setText("");
} });
}
public static void main(String[] args) throws Exception{
Client3 c = new Client3();
Socket socket = new Socket("127.0.0.1",8899);
OutputStream out = socket.getOutputStream();
BufferedReader reader1 = new BufferedReader(new InputStreamReader(socket.getInputStream()));
writer = new PrintWriter(out,true);
System.out.println("已经成功和服务器连接...");
while(true){
String line = reader1.readLine();
area.append("服务器:"+line+"\n");
}
} }

4、为多个客户端服务

  当多个客户端连接到服务器时,要用到线程机制。每当程序建立一个新的套接字连接,也就是当调用accept时,将启动一个新的线程来处理服务器和该客户端之间的连接(一个服务器一个线程),而主程序将返回并等待下一个连接。即执行如下命令:

        while(true){
      Socket incoming=s.accpet();
      Runnable r=new ThreadEchoHandler(incoming);   
 
      Thread t=new Thread(r);
      t.start();
    }

例子:

 package socket;
import java.net.*;
import java.io.*;
import java.util.*;
public class server1 {
public static void main(String[] args)throws Exception{
try{int i=1;
ServerSocket s=new ServerSocket(9000);
while(true){
Socket incoming=s.accept();
PrintWriter out=new PrintWriter(incoming.getOutputStream(),true);
Runnable r=new ThreadedEchoHandler(incoming);
Thread t=new Thread(r);
t.start();
i++;
Scanner in=new Scanner(System.in);
while(in.hasNextLine()){
System.out.println(in.nextLine());
}
}
}catch(Exception e){e.printStackTrace();}
}
}
class ThreadedEchoHandler implements Runnable{
private Socket s;
public ThreadedEchoHandler(Socket i){
s=i;
}
public void run(){
try{
try{
Scanner in=new Scanner(s.getInputStream());
String str=null;
while(true){
str=in.nextLine();
System.out.println("客户端说:"+str);
}
}
finally{s.close();}
}
catch(Exception e){e.printStackTrace();}
}
}
 package socket;
import java.net.*;
import java.io.*;
import java.util.*;
public class clent1 {
public static void main(String[] args)throws Exception{
try{int i=1;Socket s=new Socket("localhost",9000);
while(true){
PrintWriter out=new PrintWriter(s.getOutputStream(),true);
Runnable r=new ThreadedEchoHandler1(s);
Thread t=new Thread(r);
t.start();
i++;
Scanner in=new Scanner(System.in);
while(in.hasNextLine()){
System.out.println(in.nextLine());
}
}
}catch(Exception e){e.printStackTrace();}
}
}
class ThreadedEchoHandler1 implements Runnable{
private Socket s;
public ThreadedEchoHandler1(Socket i){
s=i;
}
public void run(){
try{
try{
Scanner in=new Scanner(s.getInputStream());
String str=null;
while(true){
str=in.nextLine();
System.out.println("客户端"+s+"说:"+str);
}
}
finally{s.close();}
}
catch(Exception e){e.printStackTrace();}
}
}

5、半关闭

  当我们在向服务器发送数据时,但并不知道要传输多少数据。在向文件写数据时,我们需要在写入后关闭文件即可。但是,如果关闭了一个套接字,那么与服务器就立刻断开了,因而无法读取服务器响应了。用半关闭的方法解决上述问题。可以通过关闭一个套接字的输出流来表示发送给服务器的请求数据已经结束,但是必须保持输入流处于打开状态。

socket.shutdownOutput();关闭输出流。

  例如:客户端发送hello给服务器后,关闭输出流,服务器收到后,关闭输入流,等待5秒后,向客户端发送ECHO hello。

 package socket;
import java.io.PrintWriter;
import java.net.*;
import java.util.Scanner; public class server {
public static void main(String[] args)throws Exception{
ServerSocket server=new ServerSocket(9000);
Socket s=server.accept();
Scanner in=new Scanner(s.getInputStream());
PrintWriter out=new PrintWriter(s.getOutputStream());
String str=in.nextLine();
System.out.println(str);
s.shutdownInput();
System.out.println("关闭输入流");
Thread.sleep(5000);
out.println("ECHO"+str);
s.close();
}
}
 package socket;
import java.net.*;
import java.util.Scanner;
import java.io.*;
public class client {
public static void main(String[] args)throws IOException{
Socket s=new Socket("localhost",9000);
Scanner in=new Scanner(s.getInputStream());
PrintWriter out=new PrintWriter(s.getOutputStream());
out.println("hello");
s.shutdownOutput();
System.out.println("关闭连接");
while(in.hasNextLine()){
System.out.println(in.nextLine());
}
s.close();
}
}

6、可中断套接字

  用户希望在任何时刻都可以中断套接字连接,可以考虑可中断套接字连接机制。java.nio包提供了SocketChannel类。

    Socket(Channel channel)=SocketChanne.open(new InetSocketAddress(host,port));打开SocketChannel:

  通道(channel)并没有与之关联的流。实际上,它所拥有的read和write方法都是通过使用Bufffer对象实现的。如果不想处理缓冲区,可以使用Scanner类从SocketChannel中读取信息。即:

    Scanner in=new Scanner(channel);

  通过调用静态方法Channels.newOutputStream,可以将通道转换成输出流。

    OutputStream outStream=Channels.newOutputStream(channel);   

 三、获取Web数

1、URI

  1):URI:统一资源标识符,用于标识一个web资源,包含了两个部分。

    (1)URL:统一资源定位符。能够精确的定位数据的URI

    (2)URN:统一资源名称。除了URL的URI

  在java中URI和URL是分开的两个类,URI类专门用于解析,URL用于通信。

  2):URI的分类

    绝对和相对:

      (1)绝对URI是指有确定的协议。比如http,ftp。后面以/进行分隔

      (2)相对URI是没有scheme的。

    透明和不透明:

      不透明URI是不能够被解析的URI。不透明URI是绝对URI。scheme后面的部分不是以/进行分割。

    分层和不分层:

      分层是绝对透明URI或相对URI。所有的网页端口都是80;

  3):URI的作用

    (1)解析:解析标识符并将它分解成各种不同的组成部分。

       URI的格式:[scheme:]scheme-specific-part[#fragment]

        scheme表示用的协议,可以是http\https\ftp\file等。

        scheme-specific-part是其余部分

      常用的方法:

        getScheme()获得scheme;

        getSchemeSpecificPart();

        getPath()

        getAuthority()

    (2)转换:处理绝对标识符和相对标识符,实现转换。

      URI类同时支持以下两个操作:relative和combined

  示例代码:

    任务1:取得特定网址的html代码。

    任务2:分析地址信息。

    任务3:绝对地址和相对地址转换

 package socket;
import java.net.*;
import java.util.Scanner;
public class URItest {
public static void main(String[] args)throws Exception{
URL url=new URL("http://www.yinyuetai.com");
Scanner in=new Scanner(url.openStream());
while(in.hasNextLine()){
String str=in.nextLine();
System.out.println(str);
} URI uri=new URI("http://www.cnblogs.com/liuzhongfeng");
System.out.println(uri.getScheme());
System.out.println(uri.getSchemeSpecificPart());
System.out.println(uri.getAuthority());
System.out.println(uri.getUserInfo());
System.out.println(uri.getHost());
System.out.println(uri.getPort());
System.out.println(uri.getPath());
System.out.println(uri.getQuery());
System.out.println(uri.getFragment());
String str="/p/5084309";
URI combined=uri.resolve(str);
System.out.println(combined.getScheme()+combined.getSchemeSpecificPart());
URI relative=uri.relativize(new URI(str));
System.out.println(relative.getSchemeSpecificPart()); }
}
 <!DOCTYPE HTML>
<html lang="zh-cmn-Hans">
<head>
<meta charset="UTF-8">
<meta name="keywords" content="MV,MTV,楂樻竻MV,MV涓嬭浇,楂樻竻MTV涓嬭浇,MV鍏嶈垂涓嬭浇,楂樻竻MV鍏嶈垂涓嬭浇,MV瑙嗛,闊充箰MV,鍦ㄧ嚎瑙傜湅,MV鎵嬫満鍏嶈垂涓嬭浇,瑙嗛,鍦ㄧ嚎瑙嗛MTV,鍙h路FAN"/>
<meta name="description" content="闊虫偊Tai-鍏ㄧ悆鏈?澶х殑楂樻竻MV缃戠珯锛屾彁渚涢珮鍝佽川闊充箰瑙嗛鍦ㄧ嚎瑙傜湅鏈嶅姟銆傚悓鏃朵篃鏄浗鍐呮渶澶х殑绮変笣绀惧尯锛岃秴杩?2000涓囬煶涔愮埍濂借?呭湪杩欓噷鑱氶泦銆?"/>
<meta name="viewport" content="width=1002">
<meta name="baidu-site-verification" content="d23b76SBuk"/>
<meta name="baidu-tc-cerfication" content="ffb166fcdf37d755dda2b0bd0e707808"/>
<meta property="qc:admins" content="647506777761161554116375"/>
<link rel="search" type="application/opensearchdescription+xml" title="闊虫偊鍙癕V鎼滅储" href="/glossary/yyt_glossary.xml"/>
<title>闊虫偊Tai-鍙h路FAN-鐪嬪ソ闊充箰</title>
<link href="http://s.yytcdn.com/201512221437/css/common.css" rel="stylesheet" type="text/css">
<link href="http://s.yytcdn.com/201512221437/css/app/main/index.css" rel="stylesheet" type="text/css"> <meta name="apple-itunes-app" content="app-id=767238876"/>
<script src="http://s.yytcdn.com/v2/js/require.2.1.9-jquery.1.10.2-underscore.1.5.2-backbone.1.0.0.js"></script>
<script>
var _hmt = [];
var Y = Y || {}, config = config || {};
Y.jsBaseUrl = "http://s.yytcdn.com/201512221437/js/";
Y.domains = {
urlStatic : "http://s.yytcdn.com",
loginSite : "http://login.yinyuetai.com",
mainSite : "http://www.yinyuetai.com",
mvSite : "http://mv.yinyuetai.com",
homeSite : "http://i.yinyuetai.com",
vchartSite : "http://vchart.yinyuetai.com",
commentSite : "http://comment.yinyuetai.com",
playlistSite : "http://pl.yinyuetai.com",
searcresiehSite : "http://so.yinyuetai.com",
vSite : "http://v.yinyuetai.com",
fanSite : "",
paySite : "",
tradeSite : "",
shopSite : "",
vipSite : ""
};
Y.swfs = {
mvplayer : "http://s.yytcdn.com/swf/common/mvplayer.swf?t=2015110713",
playerloader : "http://s.yytcdn.com/swf/common/playerloader.swf?rev",
explayer : "http://s.yytcdn.com/swf/common/explayer.swf?rev",
markerlocation : 'http://s.yytcdn.com/swf/common/marker.swf?rev'
};
Y.comment = {};
flashObj = {};
</script>
<script src="http://s.yytcdn.com/201512221437/js/common.js"></script>
<script src="https://api.geetest.com/get.php"></script>
<script type="text/javascript">
Y.pcpusher = typeof Y.pcpusher === "undefined" ? true : Y.pcpusher; //榛樿鏄剧ず
Y.returntop = true;
$(function() {
if (!Y.isLoadByPartner) {
require(["prober"], function(prober) {
setTimeout(function() {
var n = "pc, mac";
if (n.indexOf(prober.device.name) !== -1) {
if (Y.returntop) {
require(['modules/yinyuetai/returntop']);
}
if (Y.pcpusher) {
require(['modules/yinyuetai/pcpusher']);
}
}
}, 1500)
});
}
})
</script>
<script>
require(['juicer', 'uri'], function(juicer, Uri) {
var uri = new Uri(location.href); juicer.register('tongji_link', function(link, index) {
if (uri.getQueryParamValue('f')) {
return link + '?f=' + uri.getQueryParamValue('f') + '-' + (parseInt(index) + 1);
} else {
return link;
}
});
});
</script>
<script type="text/javascript">
if (!window.UA_Opt) {
var UA_Opt = new Object;
UA_Opt.SendMethod = 1;
UA_Opt.FormId = "loginBoxForm";
UA_Opt.ExTarget = ['password'];
window[UA_Opt.LogVal] = "";
UA_Opt.Token = new Date().getTime() + ":" + Math.random();
UA_Opt.MaxMCLog = 50;
UA_Opt.MaxKSLog = 50;
UA_Opt.MaxMPLog = 50;
UA_Opt.MaxTCLog = 50;
UA_Opt.MaxFocusLog = 50;
UA_Opt.Flag = 1965567;
}
</script>
<script type='text/javascript' src='//uaction.alicdn.com/js/uab.js'></script>
<script>
//闃叉鍔犺浇澶辫触锛屽紓姝ヤ竴娆?
(function() {
if (typeof(window.acjs) == 'undefined') {
var _script = document.createElement('script');
_script.src = '//acjs.aliyun.com/js/uab.js';
document.body.appendChild(_script);
}
})();
</script> <script type="text/javascript">
Y.siteName = "www";
</script>
</head>
<body> <script type="text/javascript">
var ua = window.navigator.userAgent.toLowerCase(); if (ua.indexOf("iphone") > 0 || ua.indexOf("android") > 0) {
window.location.href = "http://m.yinyuetai.com" + window.location.search;
}
</script> <script text="text/javaScript">
if (!TRACK_SHOW || TRACK_SHOW.length < 1) {
var TRACK_SHOW = new Array();
} TRACK_SHOW.push("http://t.collect.yinyuetai.com/v?a=104086&t=1451479895973"); (function() {
if (TRACK_SHOW.length && (window != window.parent)) {
for (var i = 0; i < TRACK_SHOW.length; i++) {
var img = document.createElement('img');
img.src = TRACK_SHOW[i] + '&t=' + new Date().getTime();
document.body.appendChild(img);
} window.stop ? window.stop() : document.execCommand("Stop");
}
})();
</script> <!-- Start topbar --> <div class="topbar">
<div class="content">
<h1 class="fl">
<a href="http://www.yinyuetai.com" class="logo" title="闊虫偊Tai">闊虫偊Tai - Logo</a>
</h1>
<ul class="menus fl">
<li class="menu hoverhandler"> <ul class="dropdownmenu fillet">
<li>
<a href="http://i.yinyuetai.com/myhome/mv" class="">鎴戠殑MV</a>
</li>
<li>
<a href="http://i.yinyuetai.com/myhome/pl" class="">鎴戠殑鎮﹀崟</a>
</li>
<li>
<a href="http://i.yinyuetai.com/myhome/blog" class="">鎴戠殑鏃ュ織</a>
</li>
<li>
<a href="http://i.yinyuetai.com/myhome/album" class="">鎴戠殑鐩稿唽</a>
</li>
<li>
<a href="http://i.yinyuetai.com/myhome/fan" class="">鎴戠殑楗洟</a>
</li>
<li>
<a href="http://i.yinyuetai.com/myhome/friend" class="">鎴戠殑鎮﹀弸</a>
</li>
<li>
<a href="http://i.yinyuetai.com/myhome/preview" class="fillet ">鎴戠殑灞曠ず椤?</a>
</li>
</ul>
</li> <li class="menu">
<a href="http://www.yinyuetai.com" class="link current">棣栭〉</a>
</li>
<li class="menu hoverhandler">
<a href="http://mv.yinyuetai.com" class="link "><span class="fl"
style="*margin-top:-1px;">MV</span><b
class="fl"></b></a>
<ul class="dropdownmenu fillet">
<li>
<a href="http://mv.yinyuetai.com" class="fillet ">MV棰戦亾</a>
</li>
<li>
<a href="http://mv.yinyuetai.com/recommend" class="">鎺ㄨ崘MV</a>
</li> <li>
<a href="http://mv.yinyuetai.com/all?sort=weekViews" class="fillet ">鍏ㄩ儴MV</a>
</li> </ul>
</li>
<li class="menu hoverhandler">
<a href="http://pl.yinyuetai.com" class="link " title="鎮﹀崟"><span class="fl">鎮﹀崟</span><b class="fl"></b></a>
<ul class="dropdownmenu fillet">
<li>
<a href="http://pl.yinyuetai.com/" class="">鎺ㄨ崘鎮﹀崟</a>
</li>
<li>
<a href="http://pl.yinyuetai.com/person_recommend" class="">鎮﹀崟杈句汉</a>
</li>
<li>
<a href="http://pl.yinyuetai.com/playlist_newRecommend"
class="fillet ">鍏ㄩ儴鎮﹀崟</a>
</li>
</ul>
</li>
<li class="menu hoverhandler">
<a href="http://vchart.yinyuetai.com/vchart" class="link "><span
class="fl">V姒?</span><b class="fl"></b></a>
<ul class="dropdownmenu fillet">
<li>
<a href="http://vchart.yinyuetai.com/vchart" class="">鑱氱劍</a>
</li>
<li>
<a href="http://vchart.yinyuetai.com/vchart/trends" class="fillet ">鎵撴鍔ㄦ??</a>
</li>
<li>
<a href="http://vchart.yinyuetai.com/vchart/v" class="fillet ">鍛ㄦtop20</a>
</li>
<li>
<a href="http://vchart.yinyuetai.com/vchart/month" class="fillet ">鏈堟top10</a>
</li>
</ul>
</li>
<li class="menu">
<a href="http://fan.yinyuetai.com" class="link ">绮変笣鑱氱劍</a>
</li>
<li class="menu">
<a href="http://shop.yinyuetai.com" class="link ">鍟嗗煄</a>
</li> <li class="menu">
<a href="http://news.yinyuetai.com" class="link ">璧勮</a>
</li>
<li class="menu hoverhandler">
<a href="http://www.yinyuetai.com/apps/mobile/tian" target="_blank" class="link"><span class="fl ">搴旂敤</span><b
class="fl"></b></a>
<ul class="dropdownmenu fillet">
<li>
<a href="http://www.yinyuetai.com/apps/mobile" target="_blank" class="">绉诲姩瀹㈡埛绔?</a>
</li>
<li>
<a href="http://www.yinyuetai.com/apps/mobile/tian" target="_blank" class="" title="鑸?">鑸?</a>
</li>
<li>
<a href="http://tv.yinyuetai.com" class="">闊虫偊TV</a>
</li>
<li>
<a href="http://www.yinyuetai.com/apps/yinyue_mini" target="_blank" class="fillet ">妗岄潰瀹㈡埛绔?</a>
</li>
</ul>
</li>
<li class="menu hoverhandler">
<a href="http://program.yinyuetai.com" class="link "><span
class="fl">鑺傜洰</span><b class="fl"></b></a>
<ul class="dropdownmenu fillet">
<li>
<a href="http://program.yinyuetai.com" class="">鐐规挱鑺傜洰</a>
</li>
<li>
<a href="http://www.yinyuetai.com/show" class="">鐩存挱鑺傜洰</a>
</li>
</ul>
</li>
<li class="menu hoverhandler"> <a href="http://vip.yinyuetai.com/fanclub" class="link "><span
class="fl">Fan Club</span><b class="fl"></b></a>
<ul class="dropdownmenu fillet">
<li>
<a href="http://vip.yinyuetai.com/fanclub" class="" title="Fan Club">Fan Club</a>
</li>
<li>
<a href="http://www.yinyuetai.com/apps/fanapp" class="fillet " title="鍙h路FAN">鍙h路FAN</a>
</li>
</ul>
</li>
<li class="menu hoverhandler"> <a href="http://stage.yinyuetai.com" class="link "><span
class="fl">闊虫偊Stage</span></a>
</li> <li class="menu hoverhandler">
<span class="new-tian"></span>
<a href="http://tian.web.yinyuetai.com/" class="link "><span
class="fl">鑸?</span></a>
</li>
</ul>
<ul class="userinfo fr hide">
<li class="user fr hoverhandler">
<a class="link" href="http://i.yinyuetai.com"><span class="fl username"></span><b class="fl"></b></a>
<ul class="dropdownmenu fillet">
<li>
<a href="http://i.yinyuetai.com/userId?preview&setskin=1" class="decoration">瑁呮壆鎴戠殑瀹?</a>
</li>
<li>
<a href="http://i.yinyuetai.com/settings/profile">涓汉璁剧疆</a>
</li>
<li>
<a href="http://trade.yinyuetai.com?r=1451479894035">鎴戠殑璁㈠崟</a>
</li>
<li>
<a href="http://i.yinyuetai.com/authen/index">璁よ瘉涓績</a>
</li>
<li>
<a href="http://login.yinyuetai.com/logout" class="fillet">閫?鍑?</a>
</li>
</ul>
</li>
<li class="notification fr hoverhandler">
<a href="http://i.yinyuetai.com/news/index" class="messenger">閫氱煡</a>
<span class="number hide"></span>
<ul class="dropdownmenu fillet hide">
</ul>
</li>
<li class="msg_close_li">
<a href="javascript:void(0);" class="msg_close hide"></a>
</li>
</ul>
<div class="login fr">
<a class="loginBtn J_login" href="http://login.yinyuetai.com/login">鐧诲綍</a>
<a href="http://login.yinyuetai.com/register">娉ㄥ唽</a>
</div>
<div class="login fr" style="width: 50px;">
<a class="loginBtn" href="http://vip.yinyuetai.com" style="border-right: 0;padding-right: 0;margin-right: 0;">VIP浼氬憳</a>
</div>
<div class="search hide fr">
<div class="left_park_side"></div>
<div class="right_park_side"></div>
<form action="http://so.yinyuetai.com" target="_blank">
<div class="searchbody"> <input type="text" name="keyword" autocomplete="off" data-url="http://v.yinyuetai.com/video/2449042"
placeholder="鏉庢椽鍩轰笓璁胯牏钀屾寫鎴樼數鍙癉J"/> </div>
<button type="submit">鎼滅储</button>
</form>
<ul class="autocomplete autocompletehide">
</ul>
</div>
</div>
<script type="text/tmp" id="autocompleteTpl">
<li class="h39"></li>
{@each videos as items}
{@each items as item, index}
{@if item.type == 'key'}
<li>
<a href="http://so.yinyuetai.com/mv?keyword={{item.word|encodeURIComponent}}" class="h30 t9 l26"
target="_blank"><strong>{{{item.word}}}</strong></a>
</li>
{@if index == items.length - 1} <li class="dotted"></li>
{@/if}
{@/if} {@/each}
{@/each} {@each videos as items}
{@each items as item, index}
{@if item.type == 'video'}
{@if index == 0}
<li>
<a href="http://so.yinyuetai.com/mv?keyword={{keyword|encodeURIComponent}}" class="h30 t9 l26 head video"
target="_blank">鎼滅储<strong>{{keyword}}</strong>鐨勭浉鍏宠棰?</a>
</li>
{@/if}
<li>
<a href="http://v.yinyuetai.com/video/{{item.id}}" target="_blank" class="h30 t25 l26">{{{item.word}}}</a>
</li>
{@if index == items.length - 1}
<li class="dotted"></li>
{@/if}
{@/if} {@/each}
{@/each}
{@each videos as items}
{@each items as item, index} {@if item.type == 'artist'}
{@if index == 0}
<li>
<a href="http://so.yinyuetai.com/artist?keyword={{keyword|encodeURIComponent}}" class="h30 t9 l26 head fans"
target="_blank">鎼滅储<strong>{{keyword}}</strong>鐨勭浉鍏抽キ鍥?</a>
</li>
{@/if}
<li>
<a href="http://www.yinyuetai.com/fanclub/{{item.id}}" class="h57" target="_blank">
<img class="avatar" src={{item.headImg}}>
<span class="title">{{{item.word}}}</span>
</a>
</li>
{@if index == items.length - 1}
<li class="dotted"></li>
{@/if}
{@/if}
{@if item.type == 'person'}
{@if index == 0}
<li>
<a href="http://i.yinyuetai.com/s/u?keyword={{keyword|encodeURIComponent}}" class="h30 t9 l26 head firend"
target="_blank">鎼滅储<strong>{{keyword}}</strong>鐨勭浉鍏虫偊鍙?</a>
</li>
{@/if}
<li>
<a href="http://i.yinyuetai.com/{{item.id}}/friend" class="h57" target="_blank">
<img class="avatar" src={{item.headImg}}>
<span class="title">{{{item.word}}}</span>
</a>
</li>
{@if index == items.length - 1}
<li class="dotted"></li>
{@/if}
{@/if}
{@/each}
{@/each}
<li>
<a href="http://so.yinyuetai.com/article?keyword={{keyword|encodeURIComponent}}"
class="h30 t9 l26 head other last" target="_blank">鎼滅储<strong>{{keyword}}</strong>鐨勫叾浠栦俊鎭?</a>
</li> </script>
<script type="text/tmp" id="autocompletenormalTpl"> <li class="h39"></li> <li>
<a href="http://v.yinyuetai.com/video/2457684" target="_blank"
class='h30 t25 l26 '>VIXX鎴愬憳璐ㄧ枒"榛戝箷" 澶氭缃㈠綍</a>
</li> <li>
<a href="http://v.yinyuetai.com/video/2439306" target="_blank"
class='h30 t25 l26 '>鐢靛奖銆婇鍚圭伅涔嬪榫欒瘈銆嬩富棰樻洸</a>
</li> <li>
<a href="http://v.yinyuetai.com/video/2452608" target="_blank"
class='h30 t25 l26 '>UNIQ澶ц亰鎴愬勾璇濋 鎰忓BOBO</a>
</li> <li>
<a href="http://v.yinyuetai.com/video/2416868" target="_blank"
class='h30 t25 l26 '>涓囦竾娌℃兂鍒帮細澶х帇鍙垜鏉ュ贰灞?</a>
</li> <li>
<a href="http://v.yinyuetai.com/video/2449042" target="_blank"
class='h30 t25 l26 '>鏉庢椽鍩轰笓璁胯牏钀屾寫鎴樼數鍙癉J</a>
</li> <li>
<a href="http://v.yinyuetai.com/video/2446190" target="_blank"
class='h30 t25 l26 '>灏规鎸戞垬娴佽璇?"鍢垮樋鍢?"琚帺鍧?</a>
</li> <li>
<a href="http://v.yinyuetai.com/video/2442052" target="_blank"
class='h30 t25 l26 '>鏉庢槗宄扮涓嬭亰澶╀細鐢ㄨ嚜宸辩殑琛ㄦ儏鍖咃紒</a>
</li> <li>
<a href="http://v.yinyuetai.com/video/2440118" target="_blank"
class='h30 t25 l26 '>鏋椾繆鏉般?婁笉涓鸿皝鑰屼綔鐨勬瓕銆?</a>
</li> <li>
<a href="http://v.yinyuetai.com/video/2440146" target="_blank"
class='h30 t25 l26 '>SpeXial鐜╂父鎴? 鑺傛搷鎺夊厜鍏?</a>
</li> <li>
<a href="http://v.yinyuetai.com/video/2439059 " target="_blank"
class='h30 t25 l26 last'>瀹炲姏灏忛粍鍥nfinite鐨勮瘹瀹為棶绛?</a>
</li> </script>
<script type="text/javascript">
if (!Y.isLoadByPartner) {
require(['modules/yinyuetai/topbar']);
} </script> </div> <!-- End topbar -->
<div class="index_auto">
<!-- Start 鐒︾偣鍥? -->
<div class="index_focus">
<a href="javascript:;" class="index_focus_pre J_toggle" data-direction="prev" title="涓婁竴寮?">涓婁竴寮?</a>
<a href="javascript:;" class="index_focus_next J_toggle" data-direction="next" title="涓嬩竴寮?">涓嬩竴寮?</a>
<ul> <li>
<a href="http://v.yinyuetai.com/video/2462853?f=SY-JDT-MV-1" class="pic" target="_blank" onclick="_hmt.push(['_trackEvent', '棣栭〉澶у浘0', '0'])"> <div class="index_focus_info J_focus_info"
style="left: 62%; width: 600px;
">
<h3>钀ф暚鑵俱?婅鎵嬫梺瑙傘??</h3> <p class="text">钀ф暚鑵炬柊涓撹緫绗簩娉富鎵撱?婅鎵嬫梺瑙傘?婱V鍏紑锛佽繖棣栨瓕鐢遍粍鍥戒鸡鑰佸笀浣滄洸銆佸璋︿綔璇嶃?侀綈绉﹀師鍞憋紒姝ゆ閲嶆柊缈诲敱鏀圭紪锛屽姞鍏ヤ簡寮︿箰缁靛瘑鐨勭紪鏇诧紝鍏呮弧浜嗏?滆惂姘忛鏍尖?濓紝娓╂煍娣辨儏鐨勫棑闊冲湪鍚屾褰曢煶鐨勭幆澧冧笅one take 瀹炲湪璁╀汉璧炲徆锛?</p>
</div> <img class="pic" src="http://img0.yytcdn.com/others/admin/151230/0/-M-f05705dd8168fccae7b04b1a188f6ed0_0x0.jpg" width="1600" height="600" alt=""/>
</a>
</li> <li>
<a href="http://www.yinyuetai.com/apps/fanapp/bigbang?f=SY-JDT-YDM-2" class="pic" target="_blank" onclick="_hmt.push(['_trackEvent', '棣栭〉澶у浘1', '1'])"> <img class="pic" src="http://img4.yytcdn.com/others/admin/151230/0/-M-43f42687966d8f7ffb51091a4a40c53d_0x0.png" width="1600" height="600" alt=""/>
</a>
</li> <li>
<a href="http://v.yinyuetai.com/video/2462759?f=SY-JDT-MV-3" class="pic" target="_blank" onclick="_hmt.push(['_trackEvent', '棣栭〉澶у浘2', '2'])"> <img class="pic" src="http://img0.yytcdn.com/others/admin/151230/0/-M-04651eb164f9ae9f6d86f3baa8d9be7d_0x0.jpg" width="1600" height="600" alt=""/>
</a>
</li> <li>
<a href="http://feature.yinyuetai.com/inventory2?id=65&f=SY-JDT-YDM-4" class="pic" target="_blank" onclick="_hmt.push(['_trackEvent', '棣栭〉澶у浘3', '3'])"> <div class="index_focus_info J_focus_info"
style="
">
<h3>鐧惧悎鎯呯紭鈥斾笘鐣屼笂鐨勫彟涓?涓垜</h3> <p class="text">濂冲瓙鐨勬儏璋婁翰瀵嗘椂缁嗚吇鑰屽井濡?,涓?涓編甯呮敾姘斿崄瓒?,瀹犳汉鎾╁鎶?鑳界偣婊″垎,涓?涓蒋钀屽彈姘旀弧婊?,鎾掑▏鍗栬悓鍔熷姏娣卞帤,榛樺鏈夌埍鐨勪簰鍔ㄦ暎鍙戠潃鎭嬬埍鐨勭敎鑵绘皵鎭?(澶ч浘),濂逛箣浜庡ス,鏄笘鐣屼笂鍙︿竴涓嚜宸辩殑瀛樺湪,鐪嬬潃濂崇闂寸櫨鍚堝ぇ鎴?,鐖卞ス浠殑浣犲噯澶囧ソ琚幇寮簡涔??</p>
</div> <img class="pic" src="http://img3.yytcdn.com/others/admin/151229/0/-M-2a343c3f9ff1a98389b92d6ae95e9118_0x0.jpg" width="1600" height="600" alt=""/>
</a>
</li> <li>
<a href="http://v.yinyuetai.com/video/2462011?f=SY-JDT-MV-5" class="pic" target="_blank" onclick="_hmt.push(['_trackEvent', '棣栭〉澶у浘4', '4'])"> <div class="index_focus_info J_focus_info"
style="
left: 32%;">
<h3>鏋椾繆鏉般?婂叧閿瘝銆?</h3> <p class="text">鏋椾繆鏉伴寮犲疄楠屼笓杈戙?婂拰鑷繁瀵硅瘽銆嬬涓夋尝涓绘墦銆婂叧閿瘝銆婱V棣栨挱锛佹瓕鏇叉灄淇婃澃璋辨洸锛屾灄鎬″嚖濉瘝銆侻V鐢遍粍涓钩瀵兼紨鎿嶅垁锛岄檲濡嶅笇鐗瑰埆婕斿嚭銆傛灄淇婃澃鐨勬洸灏嗚瘝浣滅殑浼樼編璋变笂娴撴祿涓浗椋庯紝娲楁钉瀵圭埍鎯呯殑杩锋儤锛屽甫缁欎汉骞哥鐨勫姏閲忋??</p>
</div> <img class="pic" src="http://img4.yytcdn.com/others/admin/151229/0/-M-cbc2fb9e36fdc83d49db2fbbdfb16939_0x0.jpg" width="1600" height="600" alt=""/>
</a>
</li> <li>
<a href="http://feature.yinyuetai.com/tianping?f=SY-JDT-YDM-6" class="pic" target="_blank" onclick="_hmt.push(['_trackEvent', '棣栭〉澶у浘5', '5'])"> <img class="pic" src="http://img1.yytcdn.com/others/admin/151225/0/-M-1f8e9a491d78ec6ae0c232b8191c6818_0x0.jpg" width="1600" height="600" alt=""/>
</a>
</li> <li>
<a href="http://v.yinyuetai.com/video/2459321?f=SY-JDT-MV-7" class="pic" target="_blank" onclick="_hmt.push(['_trackEvent', '棣栭〉澶у浘6', '6'])"> <div class="index_focus_info J_focus_info"
style="
">
<h3>EP120 鍋跺儚鍖呰⒈绮夌鏈虹鍥涘脊鈥斺?擲peXial鐗硅緫</h3> <p class="text">鍋跺儚鍖呰⒈绮夌鏈虹鍥涘脊鏉ュ柦锛佸皬鎳靛摂浠繖娆en鐨勭帺寰堝ぇ鍝︼紒蹇偣鐪嬭妭鐩惂锛佽妭鐩腑鍑虹幇鐨勫悕鐢婚兘鍙互閫佺粰浣犱滑鍠忥紝鍓嶆彁鏄挱鏀鹃噺杩囦簡100涓囷紝鍏蜂綋鍏虫敞@闊虫偊V姒滃畼鍗?</p>
</div> <img class="pic" src="http://img2.yytcdn.com/others/admin/151226/0/-M-9682e66d564978eb8fe864e4c43c64c0_0x0.jpg" width="1600" height="600" alt=""/>
</a>
</li> <li>
<a href="http://t.collect.yinyuetai.com/c?a=104086" class="pic" target="_blank" onclick="_hmt.push(['_trackEvent', '棣栭〉澶у浘7', '7'])"> <div class="index_focus_info J_focus_info"
style="
">
<h3>San E 銆奃o It For Fun銆?</h3> <p class="text"></p>
</div> <img class="pic" src="http://img2.yytcdn.com/others/admin/151230/0/1451457790619_1600x600.jpg" width="1600" height="600" alt=""/>
</a>
</li> <li>
<a href="http://shop.yinyuetai.com/theme?shoujiao&f=SY-JDT-YDM-8" class="pic" target="_blank" onclick="_hmt.push(['_trackEvent', '棣栭〉澶у浘8', '8'])"> <img class="pic" src="http://img4.yytcdn.com/others/admin/151225/0/-M-df24a23e71ef8da273a2d93371f4ad0c_0x0.jpg" width="1600" height="600" alt=""/>
</a>
</li> <li>
<a href="http://v.yinyuetai.com/video/2458554?f=SY-JDT-MV-9" class="pic" target="_blank" onclick="_hmt.push(['_trackEvent', '棣栭〉澶у浘9', '9'])"> <img class="pic" src="http://img1.yytcdn.com/others/admin/151225/0/-M-d172cc01f922c203cf183409cb280198_0x0.jpg" width="1600" height="600" alt=""/>
</a>
</li> </ul>
<div class="slide_nav J_nav">
</div>
</div>
<!-- End 鐒︾偣鍥? --> <script type="text/javascript">
if (!Y.isLoadByPartner) {
$.getJSON('/api/directional/get-directional-result?json=true', function(result) {
if (result.directionalResult) {
$.getJSON('/partner/get-partner-code?json=true&placeIds=index_push', function(result) {
if (result.index_push) {
var object = $(".index_focus").find("ul li").eq(1);
var index_bottom = $.parseJSON(result.index_push.replace(/'/ig, '"'));
object.find('a').attr('href', index_bottom.url);
object.find('h3').text(index_bottom.title);
object.find('.text').text(index_bottom.content);
object.find('img').attr('src', index_bottom.img);
var imp = index_bottom.imp + '&t=' + new Date();
$('<img src="' + imp + '" style="display:none;" />').appendTo(document.body);
} });
}
});
}
</script> <!-- Start 鍐呭 -->
<div class="index_content">
<!-- Start 骞垮憡浣? -->
<div class="focus_bottom_banner" style="overflow: hidden; text-align: center;">
<div class="banner_container" style="margin: 10px auto; display: block;"> </div>
</div>
<!-- End 骞垮憡浣? --> <!-- Start MV棣栨挱 -->
<div class="index_box clearfix" id="shoubo">
<div class="index_title">
<h3 class="fl ico_index_premiere01">MV棣栨挱1</h3> <div class="fr group_tab">
<a href="javascript:;" class="J_area cur" data-area="all" onclick="_hmt.push(['_trackEvent', 'MV棣栨挱*鍏ㄩ儴', '鍏ㄩ儴']);">鍏ㄩ儴</a>
<span class="ico_line"></span>
<a href="javascript:;" class="J_area" data-area="ml" onclick="_hmt.push(['_trackEvent', 'MV棣栨挱*鍐呭湴', '鍐呭湴']);">鍐呭湴</a>
<span class="ico_line"></span>
<a href="javascript:;" class="J_area" data-area="ht" onclick="_hmt.push(['_trackEvent', 'MV棣栨挱*娓彴', '娓彴']);">娓彴</a>
<span class="ico_line"></span>
<a href="javascript:;" class="J_area" data-area="us" onclick="_hmt.push(['_trackEvent', 'MV棣栨挱*娆х編', '娆х編']);">娆х編</a>
<span class="ico_line"></span>
<a href="javascript:;" class="J_area" data-area="kr" onclick="_hmt.push(['_trackEvent', 'MV棣栨挱*闊╁浗', '闊╁浗']);">闊╁浗</a>
<span class="ico_line"></span>
<a href="javascript:;" class="J_area" data-area="jp" onclick="_hmt.push(['_trackEvent', 'MV棣栨挱*鏃ユ湰', '鏃ユ湰']);">鏃ユ湰</a>
</div> </div>
<a href="javascript:;" class="group_pre1 J_prev" onclick="_hmt.push(['_trackEvent', 'MV棣栨挱*涓婁竴椤?', '涓婁竴椤?'])"></a>
<a href="javascript:;" class="group_next1 J_next" onclick="_hmt.push(['_trackEvent', 'MV棣栨挱*涓嬩竴椤?', '涓嬩竴椤?'])"></a>
<span class="ico_loading"></span> <div class="index_list_auto">
<ul class="index_list_w">
<li class="index_list"> <div class="J_add_convenient_container mv_pic mr_r22 shadow"> <a href="http://v.yinyuetai.com/video/2462863?f=SY-MKDT-MVSB-1"
class="pic play_pic1" target="_blank" onclick="_hmt.push(['_trackEvent', 'MV棣栨挱*澶у浘*宸?', '澶у浘', '宸?'])">
<img src="http://img4.yytcdn.com/others/admin/151230/0/-M-475c1462bd103d9f79050630d8752db5_0x0.jpg" width="468" height="273" alt="涓嶈鍐嶈"/> <div class="play_name" style="display: block;">
<h4 class="text fb14 mr_t75">涓嶈鍐嶈</h4> <p class="text c_cf9"> 濂藉濡逛箰闃? </p> </div>
<span class="ico_play">鎾斁</span>
</a> </div> </li>
</ul>
<div class="clearfloat"></div>
</div> </div> <!-- End MV棣栨挱 --> <!-- Start 姝f祦琛? -->
<div class="index_box clearfix" id="zhengliuxing">
<div class="index_title">
<h3 class="fl ico_index_popular">姝f祦琛?</h3> <div class="fr group_tab">
<a href="javascript:;" class="J_area cur" data-area="all" onclick="_hmt.push(['_trackEvent', 'MV棣栨挱*鍏ㄩ儴', '鍏ㄩ儴']);">鍏ㄩ儴</a>
<span class="ico_line"></span>
<a href="javascript:;" class="J_area" data-area="ml" onclick="_hmt.push(['_trackEvent', 'MV棣栨挱*鍐呭湴', '鍐呭湴']);">鍐呭湴</a>
<span class="ico_line"></span>
<a href="javascript:;" class="J_area" data-area="ht" onclick="_hmt.push(['_trackEvent', 'MV棣栨挱*娓彴', '娓彴']);">娓彴</a>
<span class="ico_line"></span>
<a href="javascript:;" class="J_area" data-area="us" onclick="_hmt.push(['_trackEvent', 'MV棣栨挱*娆х編', '娆х編']);">娆х編</a>
<span class="ico_line"></span>
<a href="javascript:;" class="J_area" data-area="kr" onclick="_hmt.push(['_trackEvent', 'MV棣栨挱*闊╁浗', '闊╁浗']);">闊╁浗</a>
<span class="ico_line"></span>
<a href="javascript:;" class="J_area" data-area="jp" onclick="_hmt.push(['_trackEvent', 'MV棣栨挱*鏃ユ湰', '鏃ユ湰']);">鏃ユ湰</a>
</div> </div>
<a href="javascript:;" class="group_pre1 J_prev" onclick="_hmt.push(['_trackEvent', '姝e湪娴佽*涓婁竴椤?', '涓婁竴椤?'])"></a>
<a href="javascript:;" class="group_next1 J_next" onclick="_hmt.push(['_trackEvent', '姝e湪娴佽*涓嬩竴椤?', '涓嬩竴椤?'])"></a>
<span class="ico_loading"></span> <div class="index_list_auto">
<ul class="index_list_w">
<li class="index_list">
<div class="mv_pic shadow index_w716"> <div class="J_add_convenient_container fl"> <a href="http://v.yinyuetai.com/video/2461180?f=SY-MKDT-ZZLX-1"
class="fl pic play_pic1" target="_blank" onclick="_hmt.push(['_trackEvent', '姝e湪娴佽*澶у浘*宸?', '澶у浘', '宸?'])">
<img src="http://img4.yytcdn.com/others/admin/151228/0/-M-5adfce3aacfa4261e445a913bf420295_0x0.jpg" width="468" height="273" alt=""/>
<span class="ico_play">鎾斁</span>
</a> </div> <div class="fl index_info">
<h4 class="title">
<a href="http://v.yinyuetai.com/video/2461180?f=SY-MKDT-ZZLX-1"
target="_blank">
鐖遍?犻楦? 绁炵鐣绡?
</a>
</h4> <p class="name"> <a href="http://www.yinyuetai.com/fanclub/171" class="special"
target="_blank">閮噰娲?</a> </p> <p class="info">閮噰娲佸叏鏂版蹇典笓杈戙?婄埍閫犻楦°?婱V绁炵鐣绡囧叕寮?锛佹娆$壒鍒個鏉ラ噸閲忕骇璧勬繁鍓т綔瀹堕噾澹澃涓庨噰娲佸叡鍚屾紨缁庡繕骞翠箣鎯咃紝鏃剁┖杞崲鍒颁簡70骞翠唬鐨勫彴婀撅紝鑰屾垙涓?佸ご鐨勬渶鍚庝竴鍙ュ拰鏈?鍚庝竴鏀垶涔熻鎵?鏈変汉鍔ㄥ锛岄儹閲囨磥绮炬箾鐨勬紨鎶?澶х垎鍙戯紝闀胯揪鍗佷簲鍒嗛挓鐨勭暘澶栫瘒璁╀綘涓?娆$湅杩囩樉</p>
</div>
</div>
</li>
</ul>
</div>
</div>
<!-- End 姝f祦琛? --> <!-- Start 闊虫偊V姒? -->
<div class="index_box index_vchart clearfix" id="vchart">
<div class="index_title">
<h3 class="fl ico_index_vchart">闊虫偊V姒?</h3>
<a href="http://vchart.yinyuetai.com/vchart/v" target="_blank" class="date">52</a>
<a href="http://vchart.yinyuetai.com/vchart/v" target="-_blank" class="fl time">2015骞? 绗?52鏈?
锛?12.21~12.27锛?</a> <div class="fr group_tab">
<a href="javascript:;" class="J_area cur" data-area="ml">鍐呭湴</a>
<span class="ico_line"></span>
<a href="javascript:;" class="J_area" data-area="ht">娓彴</a>
<span class="ico_line"></span>
<a href="javascript:;" class="J_area" data-area="us">娆х編</a>
<span class="ico_line"></span>
<a href="javascript:;" class="J_area" data-area="kr">闊╁浗</a>
<span class="ico_line"></span>
<a href="javascript:;" class="J_area" data-area="jp">鏃ユ湰</a>
</div>
</div>
<a href="javascript:;" class="group_pre1 J_prev" onclick="_hmt.push(['_trackEvent','闊虫偊V姒?*涓婁竴椤?','涓婁竴椤?'])"></a>
<a href="javascript:;" class="group_next1 J_next" onclick="_hmt.push(['_trackEvent','闊虫偊V姒?*涓嬩竴椤?','涓嬩竴椤?'])"></a>
<span class="ico_loading"></span> <div class="index_list_auto">
<ul class="index_list_w">
<li class="index_list">
<div class="mv_pic shadow index_w716"> <div class="J_add_convenient_container fl"> <a href="http://v.yinyuetai.com/video/2457525?f=SY-MKDT-YYVB-1"
class="fl pic play_pic1" title="2015骞撮煶鎮姒滅51鏈? - 鍐呭湴绡?" target="_blank" onclick="_hmt.push(['_trackEvent','闊虫偊V姒?*澶у浘ml*宸?','澶у浘ml','宸?'])">
<img src="http://img4.yytcdn.com/others/admin/151224/0/-M-de88bc3bb8fb31c7c220b0fb3d45da62_0x0.jpg" width="468" height="273" alt=""/>
<span class="ico_play">鎾斁</span>
</a> </div> <div class="fl index_info">
<h4 class="title">
<a href="http://v.yinyuetai.com/video/2457525?f=SY-MKDT-YYVB-1"
title="2015骞撮煶鎮姒滅51鏈? - 鍐呭湴绡?" target="_blank">2015骞撮煶鎮姒滅51鏈? - 鍐呭湴绡?</a>
</h4> <p class="info">鏈懆鍐呭湴V姒滐紝瀹嬭寽棣栨敮鍥借鍗曟洸锛屽彉韬揩閫掑コ绁炵尞涓婃殩蹇冩瓕鏇诧紱鍚翠害鍑℃敼缂栫粡鍏革紝楗版紨鍙嶆淳鎺ュ彈鎸戞垬锛涙潕鏄撳嘲鐗垫墜鍏佸効锛屽綋鐢风閬囧埌濂崇浼氭摝鍑烘?庢牱鐨勭伀鑺便?傛湰鍛ㄥ唴鍦癡姒滐紝鐢风濂崇澶ц仛浼氾紝閭g敾闈㈠お缇庯紝浣犳?庝箞鑸嶅緱涓嶇湅锛伮?</p>
</div>
</div> </li>
</ul>
</div>
</div>
<!-- End 闊虫偊V姒? --> <script type="text/tpl" id="video_list_tpl"> {@each videos as video,index}
{@if index%2==0}
<div class="mv_1x2">
{@/if}
{@if video.videoId >= 0}
<div class="{@if video.videoId>0}J_add_convenient_container {@/if} mv_pic shadow{@if video.videoId>0} J_mv{@/if}" data-video-id="{{video.videoId}}">
<a href="{@if video.url}{{video.url}}{@else}http://v.yinyuetai.com/video/{{video.videoId}}?f={{video.from}}{@/if}" class="pic play_pic2"
target="_blank" onclick="_hmt.push(['_trackEvent', '{{_hmt.channel}}*灏忓浘{{_hmt.areas}}*{{+_hmt.start + +index}}', '{{_hmt.channel}}', '{{+_hmt.start + +index}}'])">
<img src="{{video.image}}" width="220" height="124" alt="灏忓浘"/> <div class="play_name">
<h4 class="text fb12 {@if video.artists.length>0}mr_t80{@else}mr_t100{@/if}">{{video.title}}</h4> {@if video.artists&&video.artists.length > 0}
<p class="text c_cf9">
{@each video.artists as artist,index}
{@if index>0} & {@/if}
{{artist.artistName}}
{@/each}
</p>
{@/if}
</div>
{@if video.videoId>0}<span class="ico_play">鎾斁</span>{@/if}
{@if video.rank}
<span class="play_vchart_num"><em>{{video.rank}}</em><i
class="cor{@if video.rank<4}{{video.rank}}{@/if}"></i></span>
{@/if}
</a>
{@if video.partner}<span class="clear_special"></span>{@/if}
</div>
{@else if video.type=="trends"}
<div class="mv_pic shadow">
<a href="http://vchart.yinyuetai.com/vchart/trends?f={{video.from}}}" class="index_vchart_dynamic" target="_blank">
鏌ョ湅鎵撴鍔ㄦ??<span class="ico20_vchart_dynamic"></span>
</a>
</div>
{@else if video.type=="v"}
<div class="mv_pic shadow">
<a href="http://vchart.yinyuetai.com/vchart/v?f={{video.from}}}" class="index_vchart_dynamic" target="_blank">
鏌ョ湅寰?鏈熸鍗?<span class="ico20_vchart_time"></span>
</a>
</div>
{@/if}
{@if index%2==1||index==videos.length-1}
</div>
{@/if}
{@/each}
</script>
<script type="text/tpl" id="video_info_tpl">
{@if customTitle}<p class="title">
<span class="fl ico20_comma_l"></span>{{customTitle}}<i class="ico20_comma_r"></i></p>
{@/if} <p class="num">
<span class="ico20_play">{{totalViews}}</span>
<span class="ico20_comment">{{totalComments}}</span>
{@if rank!=0}
<a href="http://vchart.yinyuetai.com/vchart/trends" class="ico20_vchart" target="_blank">{{rank}}<i
class="{@if up}ico20_rise{@else}ico20_decline{@/if}"></i></a>
{@/if}
</p> <p class="info">{{content}}</p>
</script>
<script type="text/tpl" id="vchart_rec_tpl"> <div class="mv_pic shadow index_w716">
{@if videoId}
<div class="J_add_convenient_container fl">
{@/if}
<a href="{@if videoId}http://v.yinyuetai.com/video/{{videoId}}?f=SY-MKDT-YYVB-1{@else}{@/if}" class="fl pic play_pic1" title="{{title}}"
target="_blank">
<div class="pic">
<img src="{{image}}" width="468" height="273" alt="" onclick="_hmt.push(['_trackEvent','闊虫偊V姒?*澶у浘{{area}}*宸?','澶у浘{{area}}','宸?'])"/>
</div>
</a>
{@if videoId}
<span class="J_add_convenient" title="鍔犲叆渚挎嵎鎮﹀崟" data-video-id="{{videoId}}"></span>
</div>
{@/if} <div class="fl index_info">
<h4 class="title"><a href="{@if videoId}http://v.yinyuetai.com/video/{{videoId}}?f=SY-MKDT-YYVB-1{@else}{@/if}" target="_blank">{{title}}</a>
</h4> <p class="info">{{content}}</p>
</div>
</div>
</script>
<script type="text/javascript">
require(["app/main/index"], function(index) {
var Tray = index.Tray, store = index.store; new Tray({
el : $('#shoubo'),
tpl : $('#video_list_tpl').html(),
data : [{"artists":[{"artistName":"瀹佹瀹?","id":31414}],"from":"SY-MVSB-QB-1","image":"http://img1.yytcdn.com/video/mv/151230/2462374/-M-5b0d2ab781ea5f17ffb278b13fe8d2a2_240x135.jpg?t=20151230093237","partner":false,"rank":0,"title":"Mango 瀹樻柟鐗?","videoId":2462374},{"artists":[{"artistName":"鏋椾繆鏉?","id":22}],"from":"SY-MVSB-QB-2","image":"http://img2.yytcdn.com/video/mv/151229/2462011/-M-3ed5156cedf3099946b6df099d4794bd_240x135.jpg","partner":false,"rank":0,"title":"鍏抽敭璇? 瀹樻柟鐗?","videoId":2462011},{"artists":[{"artistName":"Wiz Khalifa","id":5298}],"from":"SY-MVSB-QB-3","image":"http://img3.yytcdn.com/video/mv/151229/2461415/-M-ca61375fcc9102ca81fa57572b84084c_240x135.jpg?t=20151229095251","partner":false,"rank":0,"title":"King of Everything","videoId":2461415},{"artists":[{"artistName":"Cal Scruby","id":31214},{"artistName":"Chris Brown","id":115}],"from":"SY-MVSB-QB-4","image":"http://img2.yytcdn.com/video/mv/151229/2461393/-M-b712ea62950e5f75300b6cf120cc99f3_240x135.jpg?t=20151229013836","partner":false,"rank":0,"title":"Ain't Shit Change","videoId":2461393},{"artists":[{"artistName":"宸︾珛","id":30212}],"from":"SY-MVSB-QB-5","image":"http://img2.yytcdn.com/video/mv/151229/2461576/-M-28ce82a529ef67b2de4c56b3851e3bac_240x135.jpg?t=20151229110714","partner":false,"rank":0,"title":"鍋氳嚜宸辩殑姒滄牱 瀹樻柟鐗?","videoId":2461576},{"artists":[{"artistName":"鏉洊","id":37530}],"from":"SY-MVSB-QB-6","image":"http://img0.yytcdn.com/video/mv/151229/2461419/-M-10ff7c5b95f1d495d6faa5be0aa06b39_240x135.jpg?t=20151229095954","partner":false,"rank":0,"title":"娴风劧娴风劧 鐢靛奖<瀵婚緳璇?>鎻掓洸鐢靛奖鐗?","videoId":2461419},{"artists":[{"artistName":"鏉ㄥ煿瀹?","id":283}],"from":"SY-MVSB-QB-7","image":"http://img0.yytcdn.com/video/mv/151228/2461004/-M-5ffe211104c51fd8931a7dca1fb9f08d_240x135.jpg?t=20151228175818","partner":false,"rank":0,"title":"蹇冧笉璺充簡 瀹樻柟鐗?","videoId":2461004},{"artists":[{"artistName":"Nicole Scherzinger","id":1833},{"artistName":"Paul McCartney","id":1437},{"artistName":"Leona Lewis","id":447},{"artistName":"Colbie Caillat","id":655},{"artistName":"Natasha Bedingfield","id":1201}],"from":"SY-MVSB-QB-8","image":"http://img3.yytcdn.com/video/mv/151228/2457078/-M-1e288a98a5d958ad9b21a7bc66bbc80d_240x135.jpg?t=20151224090247","partner":false,"rank":0,"title":"Love Song To The Earth","videoId":2457078},{"artists":[{"artistName":"Melody Day","id":33510},{"artistName":"Ravi(VIXX)","id":35977}],"from":"SY-MVSB-QB-9","image":"http://img4.yytcdn.com/video/mv/151228/2460758/-M-c557f85747c06c84feb3aaf79f146045_240x135.jpg?t=20151228112218","partner":false,"rank":0,"title":"濡傛灉涓嬮洦(Feat. Ravi of VIXX) 瀹屾暣鐗?","videoId":2460758},{"artists":[{"artistName":"闊╂捣(Phantom)","id":39589}],"from":"SY-MVSB-QB-10","image":"http://img1.yytcdn.com/video/mv/151228/2460753/-M-769728c2c46c460664d9f232a575aeb2_240x135.jpg?t=20151228111801","partner":false,"rank":0,"title":"娌℃湁閭f牱鐨勪汉(No One Like Him) 瀹屾暣鐗?","videoId":2460753},{"artists":[{"artistName":"绱犵弽(Girl's Day)","id":22660}],"from":"SY-MVSB-QB-11","image":"http://img3.yytcdn.com/video/mv/151225/2458676/-M-1a4e19d71378363ae1840ee4156c9c0d_240x135.jpg?t=20151225231052","partner":false,"rank":0,"title":"姣忓ぉ鍜屼綘 <璇峰洖绛?1988>OST Part.8","videoId":2458676},{"artists":[{"artistName":"钄″仴闆?","id":75}],"from":"SY-MVSB-QB-12","image":"http://img0.yytcdn.com/video/mv/151225/2458261/-M-e077a7b85659dbb1488ffb0fda2b5228_240x135.jpg?t=20151225140832","partner":false,"rank":0,"title":"娲荤潃鏄渶濂界殑姝讳骸 瀹樻柟鐗?","videoId":2458261},{"artists":[{"artistName":"鍚翠繆浣?","id":10261}],"from":"SY-MVSB-QB-13","image":"http://img4.yytcdn.com/video/mv/151225/2458040/-M-65a98b3efa0993dccf30b0e97843d5e7_240x135.jpg","partner":false,"rank":0,"title":"you are so beautiful 瀹樻柟鐗?","videoId":2458040},{"artists":[{"artistName":"闄堣但","id":27661},{"artistName":"濮氭櫒","id":14497},{"artistName":"绐﹂獊","id":14998}],"from":"SY-MVSB-QB-14","image":"http://img3.yytcdn.com/video/mv/151225/2457072/-M-85654be4b686740b3cb6fbe347567589_240x135.jpg?t=20151224085130","partner":false,"rank":0,"title":"涓?灏佸涔? 缇ゆ槦鐗? 鐢靛奖<涓?鍒囬兘濂?>鎺ㄥ箍鏇?","videoId":2457072},{"artists":[{"artistName":"涓佸厠妫?","id":31304}],"from":"SY-MVSB-QB-15","image":"http://img2.yytcdn.com/video/mv/151225/2458078/-M-fc5c4d77634a5776c5b9a3f39e7f231c_240x135.jpg?t=20151225104021","partner":false,"rank":0,"title":"鍌荤摐鐨勪俊浠? 瀹樻柟鐗?","videoId":2458078},{"artists":[{"artistName":"鍗庤缇ゆ槦","id":4538}],"from":"SY-MVSB-QB-16","image":"http://img4.yytcdn.com/video/mv/151230/2462412/-M-3ed1476ac9a36d7fc83ee1bef7a9768c_240x135.jpg?t=20151230101959","partner":false,"rank":0,"title":"鍦扮嫳涔嬫瓕 鐢靛奖<鏋滃疂鐗规敾>瀹d紶鏇?","videoId":2462412},{"artists":[{"artistName":"鑷充笂鍔卞悎","id":158}],"from":"SY-MVSB-QB-17","image":"http://img0.yytcdn.com/video/mv/151225/2458042/-M-968bf0e83699c17cfee56a3aa0a1e53e_240x135.jpg?t=20151225095427","partner":false,"rank":0,"title":"鑷充笂鍔卞悎<灏忛晣闈掑勾>闊充箰鐢靛奖","videoId":2458042},{"artists":[{"artistName":"Panic! At The Disco","id":3793}],"from":"SY-MVSB-QB-18","image":"http://img4.yytcdn.com/video/mv/151225/2457760/-M-bf92b9b4ac82207224d82672efbf62a4_240x135.jpg?t=20151224233748","partner":false,"rank":0,"title":"Death Of A Bachelor","videoId":2457760},{"artists":[{"artistName":"BEAST","id":2654}],"from":"SY-MVSB-QB-19","image":"http://img2.yytcdn.com/video/mv/151224/2457737/-M-845ea5556380365cda0d958265ccb7a3_240x135.jpg?t=20151224232155","partner":false,"rank":0,"title":"STAY FOREVER YOUNG","videoId":2457737},{"artists":[{"artistName":"AKB48","id":994}],"from":"SY-MVSB-QB-20","image":"http://img3.yytcdn.com/video/mv/151224/2456765/-M-bdf6edf22a4cc61af4760a0e0070184a_240x135.jpg?t=20151223201608","partner":false,"rank":0,"title":"鍚涖伅浠娿伨銇с仼銇撱伀銇勩仧?","videoId":2456765},{"artists":[{"artistName":"Selena Gomez","id":2581}],"from":"SY-MVSB-QB-21","image":"http://img2.yytcdn.com/video/mv/151222/2455447/-M-01ae068d781f5ec530e66c51819cd879_240x135.jpg?t=20151222085138","partner":false,"rank":0,"title":"Hands To Myself","videoId":2455447},{"artists":[{"artistName":"鍛ㄥ(MONSTA X)","id":37651},{"artistName":"MONSTA X","id":38259}],"from":"SY-MVSB-QB-22","image":"http://img1.yytcdn.com/video/mv/151223/2456721/-M-62ca73a36eeafccb27188e64a70b0817_240x135.jpg?t=20151223191304","partner":false,"rank":0,"title":"RAPPIN (Short Ver.)","videoId":2456721},{"artists":[{"artistName":"瀹夌惀","id":4057},{"artistName":"濮滄","id":39613}],"from":"SY-MVSB-QB-23","image":"http://img0.yytcdn.com/video/mv/151224/2456671/-M-92dffaa891361d3fc7905380b60e8760_240x135.jpg?t=20151223181625","partner":false,"rank":0,"title":"澶╀笅鏃犲弻 瀹樻柟鐗?","videoId":2456671},{"artists":[{"artistName":"Myl猫ne Farmer","id":3230}],"from":"SY-MVSB-QB-24","image":"http://img4.yytcdn.com/video/mv/151223/2454482/-M-503af2315e48bb1bc312df73ea5a788d_240x135.png?t=20151220223936","partner":false,"rank":0,"title":"City Of Love","videoId":2454482},{"artists":[{"artistName":"娓呮槬","id":375}],"from":"SY-MVSB-QB-25","image":"http://img2.yytcdn.com/video/mv/151223/2456343/-M-673659c6f0874d90177e2ad30cecbb08_240x135.jpg?t=20151223114721","partner":false,"rank":0,"title":"銉娿偠銉兗","videoId":2456343},{"artists":[{"artistName":"Rihwa","id":24680}],"from":"SY-MVSB-QB-26","image":"http://img4.yytcdn.com/video/mv/151223/2456339/-M-09af78577eecb3c0657cb3e0de0c10f4_240x135.jpg?t=20151223114057","partner":false,"rank":0,"title":"鏄庢棩銇亶銇c仺銇勩亜鏃ャ伀銇倠","videoId":2456339},{"artists":[{"artistName":"璧典粫鐟?","id":36843}],"from":"SY-MVSB-QB-27","image":"http://img4.yytcdn.com/video/mv/151223/2456157/-M-e37ac7b6c10de8ebc312a18154a0ec4f_240x135.jpg?t=20151223045958","partner":false,"rank":0,"title":"鍚閭f椂鐨勭埍寰堢編 瀹樻柟鐗?","videoId":2456157},{"artists":[{"artistName":"閮戜笢娌?(澶嶆椿)","id":8936}],"from":"SY-MVSB-QB-28","image":"http://img1.yytcdn.com/video/mv/151223/2456302/-M-81ec673787a00138c8c3c541ecacd224_240x135.jpg?t=20151223111203","partner":false,"rank":0,"title":"鍐嶆,闆?(Snow again) 瀹屾暣鐗?","videoId":2456302},{"artists":[{"artistName":"鐖辨埓","id":950}],"from":"SY-MVSB-QB-29","image":"http://img2.yytcdn.com/video/mv/151223/2456248/-M-ae9d273d0884749213077f5174d12216_240x135.jpg?t=20151223104141","partner":false,"rank":0,"title":"BABY鐖? 瀹樻柟鐗?","videoId":2456248},{"artists":[{"artistName":"A蹇淧","id":39456}],"from":"SY-MVSB-QB-30","image":"http://img4.yytcdn.com/video/mv/151229/2459787/-M-5cc78c553eefccd1e404664420edc31c_240x135.jpg?t=20151227110121","partner":false,"rank":0,"title":"銇仾銇俱倠銇淬仯銇淬伅銈堛亜銇撱仩銇?","videoId":2459787}],
fetchUrl : '/ajax/shoubo',
initSize : 8,
channel : 'MV棣栨挱' });
new Tray({
el : $('#zhengliuxing'),
tpl : $('#video_list_tpl').html(),
data : [{"artists":[{"artistName":"Adele","id":974},{"artistName":"Billboard Hot 100","id":10616}],"from":"SY-ZZLX-QB-1","image":"http://img1.yytcdn.com/video/mv/151230/2462513/-M-fe9b3c28c652557d0571b80615bffdb3_240x135.jpg?t=20151230134237","partner":false,"rank":0,"title":"2016骞寸2鏈熺編鍥紹illboard鍗曟洸姒淭op 50","videoId":2462513},{"artists":[{"artistName":"Joyce Chu 鍥涜憠鑽?","id":34557}],"from":"SY-ZZLX-QB-2","image":"http://img0.yytcdn.com/video/mv/151230/2460808/-M-5724a61f7de6f2dac1a68b20d35d06f6_240x135.jpg?t=20151228122434","partner":false,"rank":0,"title":"濂芥兂浣? 涓嶆彃鐢电増","videoId":2460808},{"artists":[{"artistName":"Charli XCX","id":22776}],"from":"SY-ZZLX-QB-3","image":"http://img0.yytcdn.com/video/mv/151230/2461984/-M-63d93eeca0f07614ed7f7288a4cad37b_240x135.jpg?t=20151229173855","partner":false,"rank":0,"title":"Super Love (EB.TV Live Classics) 鐜板満鐗?","videoId":2461984},{"artists":[{"artistName":"鍒樻稕","id":28328}],"from":"SY-ZZLX-QB-4","image":"http://img4.yytcdn.com/video/mv/151230/2462539/-M-6803f11726c4b3accb49323ba5bbd405_240x135.jpg?t=20151230141629","partner":false,"rank":0,"title":"澶х帇姝屼箣鍒樻稕鑺卞紡鍠婂ぇ鐜?","videoId":2462539},{"artists":[{"artistName":"闄堝鍐?","id":35165},{"artistName":"鍗庤缇ゆ槦","id":4538},{"artistName":"钖涘嚡鐞?","id":246}],"from":"SY-ZZLX-QB-5","image":"http://img3.yytcdn.com/video/mv/151230/2462466/-M-b452078f6401e2b4e3da5c4593601aaf_240x135.jpg?t=20151230114428","partner":false,"rank":0,"title":"鐢靛奖<楂樿窡闉嬪厛鐢?> \"缇庡皯濂冲.澹玕"鐗堥鍛?","videoId":2462466},{"artists":[{"artistName":"Dal鈽卻habet","id":13377}],"from":"SY-ZZLX-QB-6","image":"http://img1.yytcdn.com/video/mv/151230/2462442/-M-be9347cedde600c9514bf292f3f88696_240x135.jpg?t=20151230111121","partner":false,"rank":0,"title":"濡備綘(Someone like U) 棰勫憡鐗?","videoId":2462442},{"artists":[{"artistName":"Gary","id":33009},{"artistName":"瀹嬫櫤瀛?","id":38037},{"artistName":"Gaeko(Dynamic Duo)","id":36197}],"from":"SY-ZZLX-QB-7","image":"http://img3.yytcdn.com/video/mv/151230/2462439/-M-c438aba1d0ae70f3bbb88a21286be20a_240x135.png?t=20151230110540","partner":false,"rank":0,"title":"鍙堜竴澶? 棰勫憡鐗?","videoId":2462439},{"artists":[{"artistName":"闊虫偊V姒滅壒鍒紒鍒?","id":32393},{"artistName":"SpeXial","id":27113}],"from":"SY-ZZLX-QB-8","image":"http://img1.yytcdn.com/video/mv/151226/2459321/-M-3530acefc7f260ed21bb44e2ea6f50f0_240x135.jpg","partner":false,"rank":0,"title":"EP120 鍋跺儚鍖呰⒈绮夌鏈虹鍥涘脊__SpeXial鐗硅緫","videoId":2459321},{"artists":[{"artistName":"褰辫鍘熷0","id":15442}],"from":"SY-ZZLX-QB-9","image":"http://img2.yytcdn.com/video/mv/151229/2461728/-M-f25cddddf0510cd4419cf4b2fe300c8d_240x135.jpg?t=20151229121858","partner":false,"rank":0,"title":"\"鏄熺悆澶ф垬:鍘熷姏瑙夐啋\"寮哄娍鏉ヨ 鍥涘ぇ涓诲垱涓婃捣閫犲娍","videoId":2461728},{"artists":[{"artistName":"AOA","id":25339},{"artistName":"TWICE","id":38959},{"artistName":"VIXX","id":24334},{"artistName":"閲戝湥鍦?(Infinite)","id":26913},{"artistName":"BTOB","id":23535},{"artistName":"闃插脊灏戝勾鍥?","id":29570},{"artistName":"IU","id":3583},{"artistName":"ZICO(Block B)","id":36481},{"artistName":"miss A","id":7742},{"artistName":"Girl's Day","id":8247}],"from":"SY-ZZLX-QB-10","image":"http://img2.yytcdn.com/video/mv/151229/2461685/-M-58ede6478500de62b5f6ceac7458439b_240x135.jpg?t=20151229115409","partner":false,"rank":0,"title":"Who's your mama? - 2015 1theKING 涓枃瀛楀箷","videoId":2461685},{"artists":[{"artistName":"鍗庤缇ゆ槦","id":4538}],"from":"SY-ZZLX-QB-11","image":"http://img4.yytcdn.com/video/mv/151229/2461588/-M-7662a05ca8f6d98bd0f69fd5d4877998_240x135.jpg?t=20151229111150","partner":false,"rank":0,"title":"鐢靛奖<闈掕洐鐜嬪浗2>瀹氭。棰勫憡","videoId":2461588},{"artists":[{"artistName":"娓¤竟楹诲弸","id":22885},{"artistName":"AKB48","id":994}],"from":"SY-ZZLX-QB-12","image":"http://img2.yytcdn.com/video/mv/151229/2460805/-M-e6c46d185ab66bb42c68aeec9109bb59_240x135.jpg?t=20151228131215","partner":false,"rank":0,"title":"<澶уゥ>绗竴閮? 鏈?鍑躲伄濂? 绶? 1鏈?22鏃? 鐗瑰牨3 涓枃瀛楀箷 (涓轰簡楹诲弸瀛楀箷缁?)","videoId":2460805},{"artists":[{"artistName":"鍓嶇敯鏁﹀瓙","id":17280},{"artistName":"楂樻ˉ鍗?","id":28181},{"artistName":"AKB48","id":994}],"from":"SY-ZZLX-QB-13","image":"http://img1.yytcdn.com/video/mv/151228/2460944/-M-55a18d9d56399aabcb1e9c1b9919d331_240x135.jpg?t=20151228154908","partner":false,"rank":0,"title":"鍙宠偐 (2015 Best Ver.)","videoId":2460944},{"artists":[{"artistName":"KAT-TUN","id":385}],"from":"SY-ZZLX-QB-14","image":"http://img4.yytcdn.com/video/mv/151229/2461400/-M-f83397607a552759a1a92f4f11edf91a_240x135.jpg?t=20151229093838","partner":false,"rank":0,"title":"銉嬨兂銈层兂瑕冲療!銉€儖銈裤儶銉炽偘KAT-TUN Part 涓枃瀛楀箷 (15/12/24)","videoId":2461400},{"artists":[{"artistName":"GOT7","id":33018},{"artistName":"Seventeen","id":27172},{"artistName":"BTOB","id":23535},{"artistName":"MONSTA X","id":38259}],"from":"SY-ZZLX-QB-15","image":"http://img1.yytcdn.com/video/mv/151228/2460921/-M-021c9b128db74ee696e3ae4953a4e8b8_240x135.png?t=20151228153053","partner":false,"rank":0,"title":"\"鐤媯鎼炵瑧\"鍚嶈獕娈垮爞 - The Qmentary 涓枃瀛楀箷","videoId":2460921},{"artists":[{"artistName":"2PM","id":1237},{"artistName":"BTOB","id":23535},{"artistName":"TWICE","id":38959},{"artistName":"Girl's Day","id":8247},{"artistName":"GOT7","id":33018},{"artistName":"CNBLUE","id":4289}],"from":"SY-ZZLX-QB-16","image":"http://img2.yytcdn.com/video/mv/151228/2460923/-M-6cdfe55da86377268d6c660a6eb20411_240x135.png?t=20151228153432","partner":false,"rank":0,"title":"蹇嶇瑧10闃舵 涓枃瀛楀箷","videoId":2460923},{"artists":[{"artistName":"鍚翠害鍑?","id":34611}],"from":"SY-ZZLX-QB-17","image":"http://img1.yytcdn.com/video/mv/151228/2460830/-M-656fde0aa3f5161007eb7b5fa05d10a8_240x135.jpg?t=20151228130555","partner":false,"rank":0,"title":"<鑺辨埧濮戝>鏂扮紪MV 楗埗鐗?","videoId":2460830},{"artists":[{"artistName":"闊虫偊V姒?","id":21713},{"artistName":"5 Seconds of Summer","id":31322}],"from":"SY-ZZLX-QB-18","image":"http://img3.yytcdn.com/video/mv/151228/2452301/-M-48b19e3ecfca2deb49d721c12b3b0f72_240x135.jpg?t=20151218155622","partner":false,"rank":0,"title":"浜旂鐩涘 鎵撴ID","videoId":2452301},{"artists":[{"artistName":"灞变笅鏅轰箙","id":3250}],"from":"SY-ZZLX-QB-19","image":"http://img3.yytcdn.com/video/mv/151228/2460120/-M-6eeb025f8a6a935defe484de6223edd8_240x135.jpg?t=20151227154907","partner":false,"rank":0,"title":"灞盤鐨凨ISS鑻辫 绗崄鍏洖 涓枃瀛楀箷 15/11/06(P鍚у瓧骞曠粍)","videoId":2460120},{"artists":[{"artistName":"鍗庤缇ゆ槦","id":4538}],"from":"SY-ZZLX-QB-20","image":"http://img0.yytcdn.com/video/mv/151228/2460787/-M-e183387ea65199566752f177cf4e56bc_240x135.jpg?t=20151228115100","partner":false,"rank":0,"title":"鐢靛奖<鍔熷か鐔婄尗3>鐔婄尗鎷ユ姳璁″垝鍏ㄧ邯褰?","videoId":2460787},{"artists":[{"artistName":"鍏虫檽褰?","id":34692}],"from":"SY-ZZLX-QB-21","image":"http://img4.yytcdn.com/video/mv/151228/2460752/-M-0ccc4d44b7a0fe611fc9539d3b5d0832_240x135.jpg?t=20151228111135","partner":false,"rank":0,"title":"瀹夋磥瑗垮叕涓? 30绉掗鍛婄増","videoId":2460752},{"artists":[{"artistName":"鍗庤缇ゆ槦","id":4538}],"from":"SY-ZZLX-QB-22","image":"http://img0.yytcdn.com/video/mv/151228/2460726/-M-73be5dbc9db69c7cd220b003f5027599_240x135.jpg?t=20151228105259","partner":false,"rank":0,"title":"鐢靛奖<鑰佺偖鍎?>绠¤檸鐗硅緫","videoId":2460726},{"artists":[{"artistName":"鍗庤缇ゆ槦","id":4538}],"from":"SY-ZZLX-QB-23","image":"http://img2.yytcdn.com/video/mv/151228/2460675/-M-6833ff43b0d8abfa2d393fa92dfd71c2_240x135.jpg?t=20151228095619","partner":false,"rank":0,"title":"鐢靛奖<骞村吔澶т綔鎴?> \"鍏芥?уぇ鍙慭"鐗硅緫","videoId":2460675},{"artists":[{"artistName":"浣熶附濞?","id":25002},{"artistName":"鍛ㄥ啲闆?","id":14997}],"from":"SY-ZZLX-QB-24","image":"http://img0.yytcdn.com/video/mv/151228/2460673/-M-52ad28eee299241542e667d3a41429a4_240x135.jpg?t=20151228095429","partner":false,"rank":0,"title":"鐢靛奖<濂旂埍> \"鐪熺埍\"鐗硅緫","videoId":2460673},{"artists":[{"artistName":"寮犺壓鍏?(EXO)","id":29765},{"artistName":"瀛欑孩闆?","id":21696},{"artistName":"榛勬袱","id":16782},{"artistName":"榛勭","id":2344},{"artistName":"缃楀織绁?","id":15}],"from":"SY-ZZLX-QB-25","image":"http://img2.yytcdn.com/video/mv/151228/2460660/-M-e8ec5c64ba0b516eb35dcfc91502d862_240x135.jpg?t=20151228094303","partner":false,"rank":0,"title":"鐢靛奖<鏋侀檺鎸戞垬>\"涓夌簿涓夊偦\"鐗堥鍛?","videoId":2460660},{"artists":[{"artistName":"Miley Cyrus","id":280}],"from":"SY-ZZLX-QB-26","image":"http://img1.yytcdn.com/video/mv/151227/2460113/-M-eef3410c3f1c58b353745188a3fb724c_240x135.jpg?t=20151227152151","partner":false,"rank":0,"title":"My Sad Christmas Song (璇曞惉)","videoId":2460113},{"artists":[{"artistName":"Elle King","id":36104}],"from":"SY-ZZLX-QB-27","image":"http://img1.yytcdn.com/video/mv/151227/2460018/-M-084edc13e7c33e357e8ecfa8c5ecbfb8_240x135.jpg?t=20151227130112","partner":false,"rank":0,"title":"America's Sweetheart(鐜板満鐗?)","videoId":2460018},{"artists":[{"artistName":"褰辫鍘熷0","id":15442}],"from":"SY-ZZLX-QB-28","image":"http://img2.yytcdn.com/video/mv/151226/2458977/-M-3d7c28268c0e15725cd92246213ef3f9_240x135.jpg?t=20151226105427","partner":false,"rank":0,"title":"鐢靛奖<姝讳緧>涓枃棰勫憡 涓枃瀛楀箷","videoId":2458977},{"artists":[{"artistName":"Coldplay","id":123}],"from":"SY-ZZLX-QB-29","image":"http://img3.yytcdn.com/video/mv/151226/2458901/-M-9ec87cf3b8e349621a9522aa351b4a88_240x135.jpg?t=20151226093802","partner":false,"rank":0,"title":"Adventure Of A Lifetime (2015 Top of the Pops) 鐜板満鐗?","videoId":2458901},{"artists":[{"artistName":"Years & Years","id":33897}],"from":"SY-ZZLX-QB-30","image":"http://img3.yytcdn.com/video/mv/151226/2458882/-M-5f35a83f4dd3e2ada03ecbfb3f15c3d2_240x135.jpg?t=20151226092752","partner":false,"rank":0,"title":"King (2015 BBC Top of the Pops) 鐜板満鐗?","videoId":2458882}],
fetchUrl : '/ajax/zhengliuxing',
initSize : 6,
channel : '姝e湪娴佽'
});
var vchartVideos = [{"artists":[{"artistName":"TFBOYS","id":30905}],"from":"SY-YYVB-ND-1","image":"http://img2.yytcdn.com/video/mv/151211/2445791/-M-ccf0e8542755f34b3505e2180a0a8190_240x135.jpg?t=20151211102043","partner":false,"rank":1,"title":"澶фⅵ鎯冲 瀹樻柟鐗?","videoId":2445791},{"artists":[{"artistName":"鏉庢槗宄?","id":279},{"artistName":"鍐皬鍒?","id":39610}],"from":"SY-YYVB-ND-2","image":"http://img4.yytcdn.com/video/mv/151222/2455446/-M-564f19d5c67da7834113b8a888cc68e6_240x135.jpg","partner":false,"rank":2,"title":"鐖辩殑浠d环 鐢靛奖<鑰佺偖鍎?>瀹d紶鏇?","videoId":2455446},{"artists":[{"artistName":"鍚翠害鍑?","id":34611}],"from":"SY-YYVB-ND-3","image":"http://img2.yytcdn.com/video/mv/151217/2450920/-M-c7a9589e906669b7fdcb7b13f2d8058b_240x135.jpg?t=20151217095024","partner":false,"rank":3,"title":"鑺辨埧濮戝 鐢靛奖<鑰佺偖鍎?>瀹d紶鏇?","videoId":2450920},{"artists":[{"artistName":"鏉庢槗宄?","id":279}],"from":"SY-YYVB-ND-4","image":"http://img3.yytcdn.com/video/mv/151216/2450184/-M-7f783c2ff2ca14ed53379976204177d9_240x135.jpg?t=20151216113853","partner":false,"rank":4,"title":"璇疯窡鎴戣仈缁?","videoId":2450184},{"artists":[{"artistName":"鏉庡畤鏄?","id":32}],"from":"SY-YYVB-ND-5","image":"http://img4.yytcdn.com/video/mv/151210/2445086/-M-c20428d09f1e95d7a68c7d893b985e5c_240x135.jpg","partner":false,"rank":5,"title":"娣疯泲,鎴戞兂浣? 瀹樻柟鐗?","videoId":2445086},{"artists":[{"artistName":"鏉庡畤鏄?","id":32}],"from":"SY-YYVB-ND-6","image":"http://img3.yytcdn.com/video/mv/151210/2445094/-M-cf7d8e004929a2bfcdcb6627550ee584_240x135.jpg","partner":false,"rank":6,"title":"鐖辨湁寮曞姏 瀹樻柟鐗?","videoId":2445094},{"artists":[{"artistName":"鑷充笂鍔卞悎","id":158}],"from":"SY-YYVB-ND-7","image":"http://img0.yytcdn.com/video/mv/151225/2458042/-M-968bf0e83699c17cfee56a3aa0a1e53e_240x135.jpg?t=20151225095427","partner":false,"rank":7,"title":"鑷充笂鍔卞悎<灏忛晣闈掑勾>闊充箰鐢靛奖","videoId":2458042},{"artists":[{"artistName":"鐖辨埓","id":950}],"from":"SY-YYVB-ND-8","image":"http://img2.yytcdn.com/video/mv/151223/2456248/-M-ae9d273d0884749213077f5174d12216_240x135.jpg?t=20151223104141","partner":false,"rank":8,"title":"BABY鐖? 瀹樻柟鐗?","videoId":2456248},{"artists":[{"artistName":"闃块瞾闃垮崜","id":2794}],"from":"SY-YYVB-ND-9","image":"http://img0.yytcdn.com/video/mv/151130/2435691/-M-72715c973f9b613358b64b8fdb737d80_240x135.jpg?t=20151130103723","partner":false,"rank":9,"title":"瑗块","videoId":2435691},{"artists":[{"artistName":"闊╁簹","id":4437}],"from":"SY-YYVB-ND-10","image":"http://img4.yytcdn.com/video/mv/151220/2453778/-M-7666a25b90ef97690b8550b0db7ed529_240x135.jpg?t=20151220100137","partner":false,"rank":10,"title":"閫冧笉鎺? 瀹樻柟鐗?","videoId":2453778},{"artists":[{"artistName":"楣挎櫁","id":36176}],"from":"SY-YYVB-ND-11","image":"http://img4.yytcdn.com/video/mv/151202/2437545/-M-07ff74d984a27e80022d10e2e22cee3b_240x135.jpg?t=20151202091854","partner":false,"rank":11,"title":"娴峰簳 鐢靛奖<鍔熷か鐔婄尗3>瀹樻柟鎺ㄥ箍鏇?","videoId":2437545},{"artists":[{"artistName":"閭撹秴","id":3279}],"from":"SY-YYVB-ND-12","image":"http://img4.yytcdn.com/video/mv/151220/2453752/-M-e97b78a19f49be20ce23a692567c9059_240x135.png","partner":false,"rank":12,"title":"鏈夋儏涓栭棿 鐢靛奖<鎭舵澶╀娇>涓婚鏇?","videoId":2453752},{"artists":[{"artistName":" O2O Goddess","id":39594}],"from":"SY-YYVB-ND-13","image":"http://img4.yytcdn.com/video/mv/151222/2455522/-M-3b7efc178e194fe2dcd9b6a92b3e2584_240x135.jpg?t=20151222095904","partner":false,"rank":13,"title":"澹佸挌 鐢靛奖<蹇冩儕鑲夌瑧>涓婚鏇?","videoId":2455522},{"artists":[{"artistName":"璧佃嫳淇?","id":27219},{"artistName":"鐧藉","id":30713},{"artistName":"鍙吔鏄撳皬鏄?","id":30370}],"from":"SY-YYVB-ND-14","image":"http://img1.yytcdn.com/video/mv/151218/2451759/-M-cb69010e1d90efcacbe637550ca09211_240x135.jpg?t=20151217215710","partner":false,"rank":14,"title":"涓囦竾 鐢靛奖<涓囦竾娌℃兂鍒?>涓婚鏇?","videoId":2451759},{"artists":[{"artistName":"濂藉濡逛箰闃?","id":26665}],"from":"SY-YYVB-ND-15","image":"http://img4.yytcdn.com/video/mv/151220/2454001/-M-22114f8c6f2edc93d69d1316fc700c9c_240x135.jpg","partner":false,"rank":15,"title":"涓?灏佸涔? 鐢靛奖<涓?鍒囬兘濂?>鎺ㄥ箍鏇?","videoId":2454001},{"artists":[{"artistName":"鐜嬭搲","id":90}],"from":"SY-YYVB-ND-16","image":"http://img3.yytcdn.com/video/mv/151222/2455585/-M-b3b4cc01b95c904c8400b584d9999d1b_240x135.jpg?t=20151222112603","partner":false,"rank":16,"title":"鍙堕棶 鐢靛奖<鍙堕棶3>瀹d紶鏇?","videoId":2455585},{"artists":[{"artistName":"鏉洊","id":37530}],"from":"SY-YYVB-ND-17","image":"http://img4.yytcdn.com/video/mv/151223/2456183/-M-ad1639dc2622495f9def107228149c8a_240x135.jpg?t=20151223100523","partner":false,"rank":17,"title":"閰掓瓕 鐢靛奖<瀵婚緳璇?>鎻掓洸","videoId":2456183},{"artists":[{"artistName":"瀹嬭寽","id":16169}],"from":"SY-YYVB-ND-18","image":"http://img0.yytcdn.com/video/mv/151217/2450963/-M-75a8fa8c62ce4948ecae61fc87705677_240x135.jpg?t=20151217103401","partner":false,"rank":18,"title":"鏄熸槦娉? 鐢佃鍓?<缇庝附鐨勭瀵?>涓婚鏇?","videoId":2450963},{"artists":[{"artistName":"EXO","id":22594}],"from":"SY-YYVB-ND-19","image":"http://img3.yytcdn.com/video/mv/151209/2444735/-M-d80b55804935634e9b5a6c883291743c_240x135.jpg","partner":false,"rank":19,"title":"EXO_Sing For You(涓轰綘鑰屽敱)_Music Video","videoId":2444735},{"artists":[{"artistName":"鍗庢櫒瀹?","id":30165}],"from":"SY-YYVB-ND-20","image":"http://img0.yytcdn.com/video/mv/151120/2425734/-M-d7d304680469f1d63203274d159d8326_240x135.jpg?t=20151120100025","partner":false,"rank":20,"title":"铚夎潱 瀹樻柟鐗?","videoId":2425734}];
vchartVideos = vchartVideos.concat([
{type : 'trends', area : 'ML'},
{type : 'v', area : 'ML'}
]);
var vchart = new Tray({
el : $('#vchart'),
tpl : $('#video_list_tpl').html(),
data : vchartVideos,
fetchUrl : '/ajax/vchart',
initSize : 6,
special : 'vchart',
channel : '闊虫偊V姒?'
});
vchart.on('loadArea', function(area) {
store.set('index-vchart-area', area);
});
var area = store.get('index-vchart-area');
if (area && area != 'ml') {
vchart.on('init', function() {
vchart.$el.find('.J_area[data-area=' + area + ']').click();
})
}
});
</script>
</div>
<!-- End 鍐呭 --> <!-- Strat Footer-->
<div class="footer">
<p class="footer_link">
<a href="http://www.yinyuetai.com/article/3" target="_blank" title="鍏充簬鎴戜滑">鍏充簬鎴戜滑</a>
<span class="ico_line"></span>
<a href="http://www.yinyuetai.com/joinus" target="_blank" title="浜烘墠鎷涜仒">浜烘墠鎷涜仒</a>
<span class="ico_line"></span>
<a href="http://www.yinyuetai.com/article/1" target="_blank" title="鑱旂郴鎴戜滑">鑱旂郴鎴戜滑</a>
<span class="ico_line"></span>
<a href="http://www.yinyuetai.com/links" target="_blank" title="鍙嬫儏閾炬帴">鍙嬫儏閾炬帴</a>
<span class="ico_line"></span>
<a href="http://www.yinyuetai.com/article/4" target="_blank" title="鐗堟潈澹版槑">鐗堟潈澹版槑</a>
<span class="ico_line"></span>
<a href="http://www.yinyuetai.com/service/problem" target="_blank" title="瀹㈡湇涓績">瀹㈡湇涓績</a>
</p> <p class="footer_copy">
Copyright &copy; 2009 - 2014 yinyuetai.com 骞挎挱鐢佃鑺傜洰鍒朵綔缁忚惀 璁稿彲璇佺紪鍙?(浜?)瀛楃1891鍙? | <a href="http://www.yinyuetai.com/cert" target="_blank">浜綉鏂嘯2014]2037-287鍙?</a>
| <a href="http://www.yinyuetai.com/permit" title="缃戠粶瑙嗗惉璁稿彲璇?0110413鍙?">缃戠粶瑙嗗惉璁稿彲璇?0110413鍙?</a><br/>
浜琁CP澶?11024134鍙?-1 | 浜琁CP璇?060716鍙? | 浜叕缃戝畨澶?110105014900 | 鍑虹増鐗╃粡钀ヨ鍙瘉 鏂板嚭鍙戜含闆跺瓧绗湞130062鍙? | 澧炲?肩數淇′笟鍔$粡钀ヨ鍙瘉B2-20140501
<a href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202013092900002" target="_blank" class="positionImg"><img src="http://s.yytcdn.com/images/biaoshi.gif" style="vertical-align: top; margin-top: -25px;"/></a>
</p>
</div>
<!-- End Footer --> <script type="text/javascript">
(function() {
var counter = 1; var timer = setInterval(function(){
counter = counter + 2;
}, 2000); if ($.toString().indexOf('fn') !== -1 || $.toString().indexOf('J.init') !== -1) {
$.ajax({
url : 'http://gettime.yinyuetai.com/time?t='+new Date().getTime(),
dataType : 'jsonp',
success : function(data) {
$(window).on('beforeunload', function() {
clearInterval(timer);
$.ajax({
cache : false,
async : false,
type : 'post',
url : '/onunload?start=' + counter + '&date=' + data.time + '&seconds=' + counter
});
});
}
});
} else if ($.toString().indexOf('document.id') !== -1) {
new Request.JSONP({
url : 'http://gettime.yinyuetai.com/time?t='+new Date().getTime(),
onComplete : function(data) {
$(window).addEvent('beforeunload', function() {
clearInterval(timer);
new Request({
method : "post",
async : false,
noCache : true,
url : '/onunload?start=' + counter + '&date=' + data.time + '&seconds=' + counter
}).send();
});
}
}).send();
}
})();
</script>
<script type="text/javascript">
(function() {
var urls = window.TRACK_SHOW;
if (!urls || !urls.push) {
urls = [];
}
urls.push("http://log.collect.yinyuetai.com/view-log?referUrl=" + document.referrer);
urls.push("http://log.collect.yinyuetai.com/page?referUrl=" + document.referrer);
for (var i = 0, len = urls.length; i < len; i++) {
var url = urls[i];
if (url.indexOf("?") < 0)
url += "?" + (new Date()).getTime();
else
url += "&" + (new Date()).getTime();
document.write('<img style="display: none;" width="1" height="1" src="' + url + '">');
}
})();
</script>
<script type="text/javascript">
(function(G, D, s, c, p) {
c = {
UA : "UA-yinyuetai-000001",
NO_FLS : 0,
WITH_REF : 1,
URL : "http://s.yytcdn.com/js/utils/iwt-min-yyt.js"
};
G._iwt ? G._iwt.track(c, p) : (G._iwtTQ = G._iwtTQ || []).push([c, p]), !G._iwtLoading && lo();
function lo(t) {
G._iwtLoading = 1;
s = D.createElement("script");
s.src = c.URL;
t = D.getElementsByTagName("script");
t = t[t.length - 1];
t.parentNode.insertBefore(s, t);
}
})(this, document);
</script> <span style="display:none"> <script language="JavaScript">
<!--
pagechoice_t_url = 'http://col.hztags.net/dap/www/delivery/hztags.php?random=' + ( Math.floor(Math.random() * 10000 + 1) );
document.write("<img width='1' height='1' style='position: absolute' src='" + pagechoice_t_url + "'/>");
//--></script>
<script src="http://s4.cnzz.com/stat.php?id=1330456&web_id=1330456" type="text/javascript"></script> <script type="text/javascript">
window.YYTrev = "###revision###";
window.YYThostName = "BGP-LF-1RS1121";
window.YYTrequestStart = "1451479894035";
window.YYTrequestEnd = "1451479894665";
var uid1 = "awCxLrSY9aQEfpiPlzdbzKDJ";
var uid = null;
try {
uid = Y.Cookie.get("yinyuetai_uid");
if (uid == null) {
uid = uid1;
}
var ref = document.referrer || "";
if (uid != null && uid.length > 0) {
var masterUrl = "http://cm.admaster.com.cn/?tid=1635&type=1&uid=" + uid + "&loc=" + encodeURIComponent(location.href) +
"&ref=" + encodeURIComponent(ref);
var img = new Image();
img.src = masterUrl;
img.width = 1;
img.height = 1;
//document.body.appendChild(img);
} } catch (ex) {}
</script> <script type="text/javascript">
(function() {
var csid = "F09828";
var bpid = "yinyuetai";
var e = document.createElement("script");
var s = document.getElementsByTagName("script")[0];
e.src = "//js.revsci.net/gateway/gw.js?auto=t&csid=" + csid + "&bpid=" + bpid;
e.async = true;
s.parentNode.insertBefore(e, s);
})();
</script>
</span> </div> </body>
</html> http
//www.cnblogs.com/liuzhongfeng
www.cnblogs.com
null
www.cnblogs.com
-1
/liuzhongfeng
null
null
http//www.cnblogs.com/p/5084309
/p/5084309

2、URL和URLConnection

  1)、如果想要获取某个网页的html源代码,比如http://www.cnblogs.com/liuzhongfeng 则只需要:

    (1)URL url = new URL("http://www.cnblogs.com/liuzhongfeng/");

    (2)Scanner in = new Scanner(url.openStream());

  2)、当操作一个URLConnection对象时,注意以下内容:

    URLConnection connection=url.openConnection();获得URLConnection对象。

    connection.connect();连接远程资源

    connection.getContentLength();

    connection.getContentType();

    connection.setDoOutput(true)获得输出流

    connection.getOutputStream();

    connection.getInputStream();

 package socket;
import java.net.*;
import java.util.List;
import java.util.Map;
public class URLConnectionTest {
public static void main(String[] args)throws Exception{
String urlName="http://java.sun.com";
URL url=new URL(urlName);
URLConnection connection=url.openConnection();
Map<String,List<String>> map=connection.getHeaderFields();
for(Map.Entry<String, List<String>>entry:map.entrySet()){
String key=entry.getKey();
List<String>value=entry.getValue();
System.out.println(key+":"+value);
}
}
}
 Transfer-Encoding:[chunked]
X-Frame-Options:[SAMEORIGIN]
null:[HTTP/1.1 200 OK]
Server:[Oracle-Application-Server-11g Oracle-Web-Cache-11g/11.1.1.6.0 (TH;max-age=300+0;age=120;ecid=163913388711036,0:1)]
Access-Control-Allow-Origin:[*]
Connection:[Transfer-Encoding, keep-alive]
Date:[Wed, 30 Dec 2015 13:09:53 GMT]
Content-Language:[en]
Content-Type:[text/html; charset=utf-8]
X-Powered-By:[Servlet/2.5 JSP/2.1]

四、提交表单数据

  我们知道了如何从一个Web服务器读取数据。那么,程序如何又再将数据返回给Web服务器和那些被Web服务器调用的程序呢?通过程序脚本技术可以实现Web服务器对程序的调用。如Java Servlet、JavaServer Face等。

  在向Web服务器发送信息时,通常用到两个命令:get和post

  (1)、get方法是直接把数据跟在url的后面,以name=value进行传输,

每个数据之间用&进行分割,value中的空格用+替换,非字母数字用%替换,并后跟两个16进制数,这种编码方式称为URL编码。URLEncoder和URLDecoder

  (2)、post方法是通过URLConnection发送给服务器,编码方式和get一样。URLEncoder.encode(VALUE,"UTF-8");

一般在传输中文时会运用编码和解码。

具体的向服务器发送数据的过程:

  1)、创建一个URLConnection对象。URL url=new URL(String);URLConnection connnection=url.openConnection();

  2)、调用setDoOutput方法建立一个用于输出的连接。connection.setDoOutput(true);

  3)、调用getOutputStream方法获得一个流。通过这个流可以向服务器发送数据。如果想要发送文本信息,可以将流包装在PrintWriter对象中。

    即:PrintWriter out=new PrintWriter(connnect.getOutputStream());

  4)、向服务器发送数据。out.print(name1+" "+URLEncoder.encode(value1,"UTF-8")+"&");

  5)、关闭输出流。out.close();

Java:网络编程

 package socket;
import java.io.*;
import java.net.*;
import java.nio.file.*;
import java.util.*;
public class PostTest {
public static void main(String[] args)throws IOException{
Properties props=new Properties();
try(InputStream in=Files.newInputStream(Paths.get(args[0]))){
props.load(in);
}
String url=props.remove("url").toString();
String result=doPost(url,props);
System.out.println(result);
}
public static String doPost(String urlString ,Map<Object,Object>nameValuePairs)throws IOException{
URL url=new URL(urlString);
URLConnection connection=url.openConnection();
connection.setDoOutput(true);
try(PrintWriter out=new PrintWriter(connection.getOutputStream())){
boolean first=true;
for(Map.Entry<Object, Object>pair:nameValuePairs.entrySet()){
if(first) first=false;
else out.print('&');
String name=pair.getKey().toString();
String value=pair.getValue().toString();
out.print(name);
out.print('=');
out.print(URLEncoder.encode(value,"UTF-8"));
}
}
StringBuilder response=new StringBuilder();
try(Scanner in=new Scanner(connection.getInputStream())){
while(in.hasNextLine()){
response.append(in.nextLine());
response.append("/n");
}
}
catch(IOException e){
if(!(connection instanceof HttpURLConnection)) throw e;
InputStream err=((HttpURLConnection)connection).getErrorStream();
if(err==null)throw e;
Scanner in=new Scanner(err);
response.append(in.nextLine());
response.append("\n");
}
return response.toString();
}
}
上一篇:flask SQLAlchemy中一对多的关系实现


下一篇:【阿里聚安全·安全周刊】500万台Android设备受感染|YouTube封杀枪支组装视频