//公司股票调用新浪数据 var hq_str_s_sz000417; var hq_str_sz000417; var v_sz000417; //var elements = hq_str_s_sz000417.split(","); //var elements1 = hq_str_sz000417.split(","); var elements2 = v_sz000417.split("~"); //*1强转数据类型 var num4 = (elements2[33]*1).tofixed(2); var num5 = (elements2[34]*1).tofixed(2); var num2 = (elements2[36]/100*1).tofixed(2); var num3 = (elements2[37] / 10000 * 1).tofixed(2); var dt = elements2[30].slice(0, 4) + '-' + elements2[30].slice(4, 6) + '-' + elements2[30].slice(6, 8) + ' ' + elements2[30].slice(8, 10) + ':' + elements2[30].slice(10, 12); $(".bdjtsharesmsgl2 h1").text(elements2[3]); $(".bdjtsharesmsgl2 p").eq(0).text(num4); $(".bdjtsharesmsgl2 p").eq(1).text(num5); $(".bdjtsharesmsgl2 p").eq(2).text(num2); $(".bdjtsharesmsgl2 p").eq(3).text(num3); $(".bdjtsharesmsgl3 span").eq(0).text(dt); //$(".bdjtsharesmsgl3 span").eq(1).text(elements2[32]); var num6 =(0 * 1).tofixed(2); var num7 =(elements2[32]*1).tofixed(2); if(num7>num6){ $(".bdjtsharesmsgl2 h1").removeclass("bdjtsharesmsgl2h1rmb").addclass("bdjtsharesmsgl2h1rmbup"); $(".bdjtsharesmsgl2 span").css("color","#e62b1e"); }else if(num7