没有将值添加到标签中 [英] Didn't get the values into label

查看:71
本文介绍了没有将值添加到标签中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家上午好,



我是新人,我在这里使用自动列表我正面临一个问题



响应($。map(data.countrylist,function(item){
return {
lable:item
}







以上代码

data.countrylist获取国家,这里没问题





但在项目中我得到[对象窗口]

在这里我想了解详情。





帮我解决这个问题。







感谢先进。

解决方案

。 map(data.countrylist,function(item){
return {
lable:item
}







以上代码

data.countrylist获取国家,这里没问题





但在项目中我得到[对象窗口]

在这里我想获取详细信息。





帮我解决这个问题。







先谢谢。


Hi good morning,

I'm the new one to use auto list here i'm facing a issue

response($.map(data.countrylist, function (item) {
                           return {
                               lable: item
                           }




in the above code
data.countrylist get countries,here's no problem


but in item i'm getting "[object window]"
here i want to get the details.


help me to resolve this.



Thanks in advanced.

解决方案

.map(data.countrylist, function (item) { return { lable: item }




in the above code
data.countrylist get countries,here's no problem


but in item i'm getting "[object window]"
here i want to get the details.


help me to resolve this.



Thanks in advanced.


这篇关于没有将值添加到标签中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆