Home  >  Article  >  Web Front-end  >  js precision overflow solution_javascript skills

js precision overflow solution_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:47:331055browse

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');
Statement:
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
Previous article:Detailed explanation of the use of javascript object array method_javascript skillsNext article:Detailed explanation of the use of javascript object array method_javascript skills

Related articles

See more