<script>
function rls_return_handler(asynReqId,jsSrc,code,result){
if(code > 0){
//请求超时
}else if(code < 0){
//调度错误
}else{
//成功调度,获得调度结果。
for(var i=0; i<result.childNodes.length; i++){
var reps = result.childNodes[i];
if(reps.nodeName == "Response"){
//取出结果中url的值,即是在架状态的地址
}
}
}
}
var src = "http://rls2.calis.edu.cn:7182/RLSClientApp/it/EmbedSchedular? req_dat=ip%3A162.105.139.48%40162.105.139.48&ctx_id=0&place=211010&isbn=7-80575-974-X&genre=book&ver=OPENURL01CX&fmt=book&service=holdings";asyn_import(src,10000,rls_return_handler);
</script>
在html中怎么执行函数“asyn_import”。我自己写了个,最后一行代码“asyn_import(src,10000,rls_return_handler);”报缺少对象错误!响应结果页面如下:
  <?xml version="1.0" encoding="UTF-8" ?>  
- <CLRCResponse>
  <Response ctx_id="0" rep_id="CCC_reptype_002016002" name="北京大学图书馆馆藏图书" distance="0" service="holdings" localCollectionGranularity="0" url="http://162.105.139.36:7182/RLSClientApp/jsfpages/OneReq.jsf?rls_onereq_ctxid=69ceb242fa9860cdf34753f3588e2e7d&rls_onereq_sv=holdings&rls_onereq_tn=0" />  
  </CLRCResponse>我是初学者,谢谢各位了!!!