因为项目需要获取当前屏幕的长宽,传到后台进行判断。当th:href自己怎么也不知道怎么传。
原本是这样
function toMap() {
var screemWidth=
(window).height();
location.href="/system/industryMap/toIndustryMap?screemWidth="+screemWidth+"&screemHeight="+screemHeight;
}
因为项目需要获取当前屏幕的长宽,传到后台进行判断。当th:href自己怎么也不知道怎么传。
原本是这样
function toMap() {
var screemWidth=
(window).height();
location.href="/system/industryMap/toIndustryMap?screemWidth="+screemWidth+"&screemHeight="+screemHeight;
}