.includes()
// IE8 : custom declaration of indexOf()
if(!Array.indexOf){
Array.prototype.indexOf = function(obj){
for(var i=0; i<this.length; i++){
if(this[i]==obj){
return i;
}| // If user types www.example.com, browser opens http://www.example.com by default. | |
| var url = "https://www.example.com"; | |
| window.location.replace(url); |
| <%@ page contentType="text/html; charset=EUC-KR" %> | |
| <%@ page import="java.sql.*" %> | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR" /> | |
| <title>Oracle Connection Test</title> | |
| </head> | |
| <body> | |
| <h1>Oracle Connection Text</h1> |
| <!-- set IE Browser's version latest--> | |
| <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> |
| <!-- Change your id from "myUserId" to "my******" --> | |
| <c:forEach var="i" begin="0" end="${fn:length(id)-1}"> | |
| <c:choose> | |
| <c:when test="${i <= 1}"> | |
| <c:out var="${id.charAt(i)}" /> | |
| </c:when> | |
| <c:otherwise> | |
| <c:out var="*" /> | |
| </c:otherwise> |
| <!-- Tested on 2016. 12. 5. --> | |
| <body> | |
| <!-- IE8 --> | |
| <!--[IF IE 8]> | |
| <p>isIE8</p> | |
| <![endif]--> | |
| <!-- IE9 --> | |
| <!--[IF IE 9]> | |
| <p>isIE9</p> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>hideHref</title> | |
| </head> | |
| <body> | |
| <a href="javascript:;" onclick="javascript:linkFunc('http://www.google.com');">www.hiddenHref.com</a> | |
| <script> | |
| function linkFunc(link) { | |
| window.open(link, '_self'); |
| function restoreHtml(content){ | |
| if(content == "" || $.trim(content) == ""){ | |
| return content; | |
| } | |
| content = content.replace(/\</gi,"<"); | |
| content = content.replace(/\>/gi,">"); | |
| content = content.replace(/\&lt;/gi,"<"); | |
| content = content.replace(/\&gt;/gi,">"); | |
| content = content.replace(/\[\\\"\\\'][\\s]*javascript:(.*)[\\\"\\\']/gi, "\"\""); |
| /* COMMON */ | |
| SELECT * | |
| FROM Person | |
| JOIN Worker | |
| ON Person.id = Worker.id; | |
| /* Oracle (Same as above) */ | |
| SELECT * | |
| FROM Person, | |
| Worker |