Home > Web Front-end > JS Tutorial > js precision overflow solution_javascript skills

js precision overflow solution_javascript skills

WBOY
Release: 2016-05-16 17:47:33
Original
1117 people have browsed it

Generally, parameter values ​​cannot exceed 16 bits. If it exceeds 16, it is replaced with 0, resulting in us not being able to query the results we want.
When encountering this problem, we make the following modifications
Write the attributes ourselves
Original:

Copy code Code As follows:

The code is as follows:


" tagMid="<%=dr.getString("MODULE_ID")%>" tagIid="<%=dr.getString("ID")%>" onclick="toProject(this)" ><%=dr.getString("BT").trim() "" %>
Copy Code

The code is as follows:

toProject = function(e)
{ location.href="<%=path%>/form /" e.tagFid ".xform?moduleId=" e.tagMid "&Info_ID=" e.tagIid; } Handling garbled characters


Copy code


The code is as follows:


window.open(encodeURI(url),'_blank');
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template