Smart mobile studio 使用HTML导航表单?
有没有一种方法可以使用HTML导航到另一个表单 例如,我的innerHTML中的一个链接Smart mobile studio 使用HTML导航表单?,smart-mobile-studio,Smart Mobile Studio,有没有一种方法可以使用HTML导航到另一个表单 例如,我的innerHTML中的一个链接 <a href="goto form 2 here">Form2</a> 那么,在我的头顶上给出这样的东西,如果点击其中一个名字,你会怎么做一个GotoForm呢 <div> <p>Who is the president of the United States?</p> <br> <center&
<a href="goto form 2 here">Form2</a>
那么,在我的头顶上给出这样的东西,如果点击其中一个名字,你会怎么做一个GotoForm呢
<div>
<p>Who is the president of the United States?</p>
<br>
<center>
<A href=""> Hillary Clinton </A><br>
<A href=""> Bernie Sanders </A<br>
<A href=""> Joseph Biden </A<br>
<A href=""> Donald Trump </A<br>
</center>
</div>
谁是美国总统
伯尼·桑德斯(Bernie Sanders)在facebook朋友的帮助下:)我得出了以下结论
var i: integer;
IdStr: String;
begin
fQuestion.content.InnerHTML:= '<div style="text-align: center; position: relative;">' +
'<br><center><p>' + fQuestions.questions[fIndex].question + '</p></center><br>' +
'<center>' +
'<A id="answer1" href="">' + fQuestions.questions[fIndex].answers[0] + '</A><br>' +
'<A id="answer2" href="">' + fQuestions.questions[fIndex].answers[1] + '</A><br>' +
'<A id="answer3" href="">' + fQuestions.questions[fIndex].answers[2] + '</A><br>' +
'<A id="answer4" href="">' + fQuestions.questions[fIndex].answers[3] + '</A><br>' +
'</center>' +
'</div>';
for i:= 1 to 4 do
begin
IdStr:= 'answer' + intToStr(i);
var h:= BrowserAPI.Document.getElementById(idStr);
if (h) then
begin
h.onclick := procedure (ev: variant)
begin
//do something here
end;
end;
end;
end;
varⅠ:整数;
IdStr:String;
开始
fQuestion.content.InnerHTML:=“”+
“
”+fQuestions.questions[fIndex]。question+”
'+
'' +
“
”+
“
”+
“
”+
“
”+
'' +
'';
对于i:=1到4 do
开始
IdStr:=“应答”+intToStr(i);
var h:=BrowserAPI.Document.getElementById(idStr);
如果(h)那么
开始
h、 onclick:=过程(ev:变量)
开始
//在这里做点什么
结束;
结束;
结束;
结束;
var i: integer;
IdStr: String;
begin
fQuestion.content.InnerHTML:= '<div style="text-align: center; position: relative;">' +
'<br><center><p>' + fQuestions.questions[fIndex].question + '</p></center><br>' +
'<center>' +
'<A id="answer1" href="">' + fQuestions.questions[fIndex].answers[0] + '</A><br>' +
'<A id="answer2" href="">' + fQuestions.questions[fIndex].answers[1] + '</A><br>' +
'<A id="answer3" href="">' + fQuestions.questions[fIndex].answers[2] + '</A><br>' +
'<A id="answer4" href="">' + fQuestions.questions[fIndex].answers[3] + '</A><br>' +
'</center>' +
'</div>';
for i:= 1 to 4 do
begin
IdStr:= 'answer' + intToStr(i);
var h:= BrowserAPI.Document.getElementById(idStr);
if (h) then
begin
h.onclick := procedure (ev: variant)
begin
//do something here
end;
end;
end;
end;