for循环进不去怎么回事
答案:2 悬赏:60
解决时间 2021-02-03 09:55
- 提问者网友:说不出醉人情话
- 2021-02-02 11:54
function findComment(){
var url=web_path+"shopping_mall_agent_c/find_FindAction_selectFindComment.action";
var params = {
id:id
};
Utils.ajax(url,params,function(data){
var list = data.result.list;
var str="";
for(var i=0;i var userName=list[i].userName;
var info=list[i].info;
var createTime=list[i].createTime;
var userId=list[i].userId;
str+= ''+
''+userName+''+createTime+
''+
''+
info+
'';
}
$("#commentList").html(str);
});
}
最佳答案
- 二级知识专家网友:夢想黑洞
- 2021-02-02 12:27
for循环近似于while(){}循环,进不去肯定是count<point_num或num<m_pblock[count].FrameNum不满足。 检查一下point_num和m_pblock[count].FrameNum在那里赋值的?值多少?
全部回答
- 1楼网友:樣嘚尐年
- 2021-02-02 13:30
其实这是取200内质数的;
for i:=2 to 15 do 这边的2 to 15是什么意思?->i是约数,对于200 内的15已经足够;
begin
for j:=i+1 to 200 do 这边为什么是j+1 to 200?->找大于约数的质数
begin
if j mod i=0 then
exclude(primen,j); 这个exclude 函数是什么意思? 最好加个例子
end;
end;
至于exlude,delphi 中有例子;好像在单元system
我要举报
大家都在看
推荐资讯