近来老师让仿购物网站做网站,遇到一个问题 就是写个指向某一地址的超链接 怎么也不能打开,无论在什么地方写也不行。而指向其它网址的链接就可以,郁闷百分。看到下面一段代码不知道是不是因为那个{0} {1} 导致的。
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
var resources_Head={ welcome_Login3:'<span class="noBack">{0}好,欢迎来美乐购物!</span>', login2:'<span><a href="{0}">请登录</a></span><span><a href="{1}">免费注册</a></span>', welcome_Login4:'<span class="noBack"><strong>{0}</strong>{1}好,欢迎来美乐购物!</span>', logOut2:'<span><a href="{0}">退出</a></span>', welcome_ThirdLogin2:'<span class="noBack">亲爱的{0}用户 <strong>{1}</strong>您好!</span>', welcome_ThirdLogin3:'<span class="noBack">亲爱的{0}会员 <strong>{1}</strong>您好!</span>', nameAliPayJinZhangHu:'支付宝金账户', mustInputKeyWords:'您必须输入您要搜索的产品关键字, 谢谢!', welcome_Login:'<span class="noBack"><strong>{0}</strong>{1}好,{2}</span>', welcome_Login2:'<span class="noBack"><strong>{0}</strong>{1}好,欢迎您来到美乐购物!</span>', welcome_ThirdLogin:'<span class="noBack">亲爱的{0}用户 {1},{2}好!</span>', welcome_QQLogin:'<span class="noBack">亲爱的{0} {1},{2}好!</span>', welcome_Netease:'<span class="noBack">欢迎{0}用户登录 {1},{2}好!</span>', welcome_NotLogin:'<span class="noBack">您好,{0}</span>', welcome_NotLogin2:'<span class="noBack">您好,欢迎您来到美乐购物!</span>', logOut:'<span><a href="{0}">退出</a></span>', login:'<span><a href="{0}">登录</a></span><span><a href="{1}">免费注册</a></span>', noRegister:'<span><a href="{0}">登录</a></span>', Morning1:'早上', Morning2:'上午', Noon:'中午', Afternoon:'下午', Night:'晚上', countOver:'已结束', areaCodeJson:'[{"areaSysNo":0,"code":"QG","name":"全国站","subAreaInfoArray":null},{"areaSysNo":0,"code":"SH","name":"上海站","subAreaInfoArray":null},{"areaSysNo":0,"code":"BJ","name":"北京站","subAreaInfoArray":null},{"areaSysNo":0,"code":"GZ","name":"广州站","subAreaInfoArray":null}]' };
我改的是免费注册那儿和请登录那儿的链接地址。改成一个确定的链接,但用IE打开总是不能转向,不知道为什么。
还有{0} 是什么意思啊