Created
April 9, 2013 09:36
-
-
Save i5ting/5344394 to your computer and use it in GitHub Desktop.
网易study
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <title>simple tab_zt</title> | |
| <style type="text/css"> | |
| *{margin:0; padding:0;} | |
| .i5ting_tab_list_bg{ | |
| background-color :#f4f4f4; | |
| } | |
| </style> | |
| <link href="../src/css/i5ting-jquery-tab.css" media="screen" rel="stylesheet" type="text/css"> | |
| </head> | |
| <body> | |
| <div class='i5ting_tab_list'> | |
| </div> | |
| <br/><br/><br/> | |
| </body> | |
| </html> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script> | |
| <script src="../src/i5ting-jquery-tab.js" type="text/javascript"></script> | |
| <script> | |
| $(function(){ | |
| var API_LOGIN_URL = "http://study.163.com/dwr/call/plaincall/CourseBean.getHotCourses.dwr"; | |
| var PARAMS = { | |
| "callCount" :"1", | |
| "scriptSessionId" : "${scriptSessionId}190", | |
| "httpSessionId" :"241D014BE90039A67A923616D6F6FC16.study1-8010", | |
| "c0-scriptName" : "CourseBean", | |
| "c0-methodName" : "getHotCourses", | |
| "c0-id" : "0", | |
| "c0-param0" : "number:2", | |
| "batchId" : "869954" | |
| } | |
| $.post(API_LOGIN_URL,PARAMS,function(data) { | |
| var js = data.replace(/\/\/#DWR-INSERT/g,''); | |
| js = js.replace(/\/\/#DWR-REPLY/g,''); | |
| js = js.replace(/dwr\.engine\._remoteHandleCallback\('869954','0',{courseList:s0,pagination:s1}\);/g,''); | |
| eval(js); | |
| for(var i = 0;i < 18 ;i++){ | |
| console.log("s"+i +"\n"); | |
| console.log(eval("s"+i)); | |
| for(var item in eval("s"+i)){ | |
| console.log(item +"="+eval("s"+i)[item] +"\n" ); | |
| } | |
| } | |
| $('.i5ting_tab_list').html(js); | |
| },'text'); | |
| }); | |
| </script> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如果需要,可以自己修改httpSessionId