87,997
社区成员




function start_flow()
{
start_project();
start_config();
...
}
function start_project()
{
...
}
function start_config()
{
...
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<p id="a"></p>
<script>
function a(){
for(var i = 0; i < 10000; i++){
document.writeln('a' + i);
}
};
function b(){
document.writeln('我是b方法里的一条输出语句');
}
function c(){
a();
b();
};
c();
</script>
</body>
</html>
function start_flow()
{
start_project();
//start_config();注掉
}
function start_project()
{
int_value = setInterval("embed('ANSYS CFD Viewer')",1000);
function embed(title_name)
{
var stat;
stat = smartembededwidget.embed_app('QWidget', title_name, 0,-27, 0, 0);
if(stat){
clearInterval(int_value);
start_config(); //加这不就行了么 搞那么复杂干嘛
}
}
}
function start_config()
{
...
}
function start_flow()
{
var count = 0,is_true = false;
setInterval(function(){
if(!count){
is_true = start_project();
count++;
}
if(is_true){
start_config();
is_true = false;
}
},1000);
...
}
function start_flow()
{
start_project();
start_config();
...
}
function start_project()
{
int_value = setInterval("embed('ANSYS CFD Viewer')",1000);
function embed(title_name)
{
var stat;
stat = smartembededwidget.embed_app('QWidget', title_name, 0,-27, 0, 0);
if(stat) clearInterval(int_value);
}
}
function start_config()
{
...
}
<script>
function start_flow()
{
start_project();
setTimeout("start_config()",4000);
...
}
function start_project()
{
...
}
function start_config()
{
...
}
</script>