第一页.html
$(function(){
var aaa = $.cookie("building");
//获取cookie
});
第二页.html
function building(txt,shop_id){
var fruitsurl = "http://t.vgoule.com/index.php/Index/fruits?id="+shop_id;
$.cookie("building",txt,{path:'/', domain:'t.vgoule.com'});
//设置域名才能保证所有页面接到值否则其他页面获取不到jq cookie
location.href = fruitsurl;
}