Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下输入:
<input id="whereInput" type="text" name="where" placeholder="around..." geodata="-73.6050237,45.5511518" value="Current Location">
我想将地理数据作为值传递给 get 参数,而不是它的值。
换句话说,我想要where=-73.6050237,45.5511518但不是where=Current%20Location
where=-73.6050237,45.5511518
where=Current%20Location
谢谢,
将您实际要提交的值存储在具有不同名称的隐藏输入中。
如果提交的值为“当前位置”,则改为从其他字段读取数据。