Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/392.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 在div中加载的页面上应用jquery,稍后在引导模式中应用_Javascript_Jquery_Html - Fatal编程技术网

Javascript 在div中加载的页面上应用jquery,稍后在引导模式中应用

Javascript 在div中加载的页面上应用jquery,稍后在引导模式中应用,javascript,jquery,html,Javascript,Jquery,Html,我有一个场景是 jsp,包括一个js文件,比如temp.js,10个来自后端的数据作为JSON,在jquery中,我用onclick属性创建锚定标记 对象=[] (for i=0;i<10;i++) object = new Object(); //setting the different attributes of this object and passing index to the onclick function <a href="modal.jsp" onCli

我有一个场景是

jsp,包括一个js文件,比如temp.js,10个来自后端的数据作为JSON,在jquery中,我用onclick属性创建锚定标记 对象=[]

(for i=0;i<10;i++)
 object = new Object();
  //setting the different attributes of this object and passing index to the onclick function
 <a href="modal.jsp" onClick(i) ></a>

(对于i=0;i,这已经被回答了好几次

使用jquery on()函数