jquery after parseInt
<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<c:set var ="str8" value="010" />
<c:set var ="str10" value="10" />
<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<script type="text/javaScript" language="javascript" defer="defer">
function testView(){
$(".sInner1").after(${str8}, ${str10});
$(".sInner2").after(parseInt("${str8}")+", "+parseInt("${str10}"));
$(".sInner3").after(parseInt("${str8}",8)+", "+parseInt("${str10}",8));
}
</script>
</head>
<body>
<input type="button" onclick="testView();" value="testView" />
<hr>
=====010, 10=====<br />
<div class="inner1">inner1 : <span class="sInner1"></span></div>
<div class="inner2">parseInt() : <span class="sInner2"></span></div>
<div class="inner3">parseInt(radix) : <span class="sInner3"></span></div>
</body>
</html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<c:set var ="str8" value="010" />
<c:set var ="str10" value="10" />
<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<script type="text/javaScript" language="javascript" defer="defer">
function testView(){
$(".sInner1").after(${str8}, ${str10});
$(".sInner2").after(parseInt("${str8}")+", "+parseInt("${str10}"));
$(".sInner3").after(parseInt("${str8}",8)+", "+parseInt("${str10}",8));
}
</script>
</head>
<body>
<input type="button" onclick="testView();" value="testView" />
<hr>
=====010, 10=====<br />
<div class="inner1">inner1 : <span class="sInner1"></span></div>
<div class="inner2">parseInt() : <span class="sInner2"></span></div>
<div class="inner3">parseInt(radix) : <span class="sInner3"></span></div>
</body>
</html>