您好,请教index.js中,bindDate() 里的第一句。
Closed this issue · 2 comments
BeijiYang commented
function bindData( itemData ) {
var url = itemData.url.replace( "//ww", "//ws" ); //???
// var url = itemData.url;
var desc = itemData.desc;
var who = itemData.who;
var times = itemData.publishedAt.split( "T" )[ 0 ];
mUrl.push( url );
mDesc.push( desc );
mWho.push( who );
mTimes.push( times );
mTitles.push( "publish by:" + "@" + who + " —— " + times );
}
请问为什么要用replace做这个置换呢,它的作用是什么?我试着去掉它,结果图片不显示。多谢多谢。
brucevanfdm commented
BeijiYang commented
好吧,奇妙的坑。多谢了。