분류 전체보기
- 회원가입 껍데기 2021.08.11
- 로그인 껍데기 2021.08.10
- limit 종류 2020.09.15
- jquery addClass 2020.05.22
- e.currentTarget 2020.05.22
- java 한글 인코딩 확인 2019.01.11
회원가입 껍데기
로그인 껍데기
limit 종류
1.
select abc, id
from a
limit 10000, 10;
2.
select abc, id
from a
limit 10 offset 10000;
3-1.
select q.abc, id
from (
select abc
from a
where 필요하면 작성....
order by 필요하면 작성...
limit 10000, 10
) q
join a
on q.abc = a.abc
;
3-2.
select q.abc, id
from a
join (
select abc
from a
where 필요하면 작성....
order by 필요하면 작성...
limit 10000, 10
) q
on q.abc = a.abc
;
3-3.
select q.abc, id
from a, (
select abc
from a
where 필요하면 작성....
order by 필요하면 작성...
limit 10000, 10
) q
where q.abc = a.abc
;
jquery addClass
<html>
<h2 id="pt">테스트</h2>
</html>
<script>
pt = document.getElementById("pt");
$(pt).addClass("addClassTest");
$(pt).addClass("addClassTest2");
</script>
---------------------
결과는
<h2 id="pt" class="addClassTest addClassTest2">테스트</h2>
e.currentTarget
<html>
<h2 id="pt">테스트</h2>
</html>
<script>
pt = document.getElementById("pt");
pt.addEventListener("click", ptClick, false);
function ptClick(e) {
console.log(e.currentTarget);
}
</script>
---------------------
console.log 결과는
<h2 id="pt">테스트</h2>
'일' 카테고리의 다른 글
java 한글 인코딩 확인 (0) | 2019.01.11 |
---|
java 한글 인코딩 확인
String [] charSet = {"utf-8","euc-kr","ksc5601","iso-8859-1","x-windows-949"};
for (int i = 0; i < charSet.length; i++) {
for (int j = 0; j < charSet.length; j++) {
try {
System.out.println("[" + charSet[i] + "," + charSet[j] + "] = "+ new String(originalStr.getBytes(charSet[i]), charSet[j]));
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
}
}
'일' 카테고리의 다른 글
e.currentTarget (0) | 2020.05.22 |
---|