无效或意外的令牌 - 生成简单的消息

时间:2016-07-13 15:41:20

标签: javascript jquery

这是非常简单的东西,但看不出什么我想念,任何想法?

错误:无效或意外的令牌

在尝试构建

的消息上获取错误

JS

var country_select = 'c_UK';
  var country_image = 'eu';
  var country_link = 'http://www.google.co.uk';
  var country_short = 'UK';

  var message = "looks like you're in" + json.country + "<span class='flag-" + country_image +"'></span> Take me to the Google <span class='"+ country_found_short +"'></span> site <a href='"+ country_link +"' class='button country_found_link'>Visit Site</a>';

  // set top bat details
  $(".country-select .message").html(message);
  $(".country_found_short").html(country_short);
  $(".country-select").show(); 

0 个答案:

没有答案