In HTML, it's possible to pass multidimensional keys, eg
<input type="text" name="user_profile[name]" />
<input type="type" name="user_profile[id]" />
And in my PHP script I can just access them by $_POST['user_profile']
Can one pass these multidimensional key-value pairs with Java?
You can use string manipulation technique.
From: <input type="text" name="user_profile[name]">
To: <input type="text" name="user_profile_name">
Then in JS/jQuery do:
$('user_profile_name')...
or:
If "id" element doesn't mean that much to your then do this:
<input type="text" name="user_profile[name]" id="user_profile_name">
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.