【发布时间】:2015-09-19 02:18:55
【问题描述】:
$(".divclass").each(function() {
Build An Array with all .divclass ID (
});
~~~~> POST with AJAX for page.php
PHP gets the array and then use the function with each result of #divclassID
require "phpfunction.php";
$array = array received from AJAX;
for each #divclassID => $key {
getFunction($key)
}
After, rebuild a json array and print this;
文字说明:
1º) 对于每个 .divclass,构建一个包含所有 $(this).attr("ID"); 的数组(每个 .divclass 的 ID)
2º) 将数组发送到page.php;
3º) page.php 接收数组并使用数组中列出的每个元素 ID 的 php 函数;
请问,有可能吗?
【问题讨论】:
-
page.php是做什么的?
标签: javascript php jquery arrays