Jquery

1. a标签href赋值

 $("#ref").attr("href", encodeURI(url));

2. span标签text赋值

$("#time").html("<b>" + arr[2] + arr[3] + "~" + arr[4] + "</b>");

原文地址:https://www.cnblogs.com/dennysong/p/5555245.html