Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/461.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript FB.api使用jquery on函数创建元素_Javascript_Jquery_Facebook_Jquery Mobile_Jquery On - Fatal编程技术网

Javascript FB.api使用jquery on函数创建元素

Javascript FB.api使用jquery on函数创建元素,javascript,jquery,facebook,jquery-mobile,jquery-on,Javascript,Jquery,Facebook,Jquery Mobile,Jquery On,我正在用我的facebook回复数据创建列表元素 如何使用jquery的.on(deprecated.live)函数从jquery.mobile获取样式 jquerymobile包含在head中 facebook是在正文开头之后加入的 if (response.status === 'connected') { FB.api("me/friends",{ fields:'username,name,id', limit:10 },funct

我正在用我的facebook回复数据创建列表元素

如何使用jquery的.on(deprecated.live)函数从jquery.mobile获取样式

jquerymobile包含在head中

facebook是在正文开头之后加入的

if (response.status === 'connected') {
FB.api("me/friends",{
          fields:'username,name,id',
          limit:10
        },function(res){

            $.each(res['data'],function(id,val){
                $('ul#list').append(
                    'some li´s'+'some content'
                );

            })
        })
}

每次循环后使用$('ul#list').listview('refresh');啊,太棒了!非常感谢你!如果你想了解更多,请阅读这篇文章:这将在未来几天对我有很大帮助。谢谢Gajotres