<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">html
<html xmlns="http://www.w3.org/1999/xhtml">ui
<head>spa
<title>js運算符</title>xml
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />htm
<meta name="description" content="布爾教育 http://www.itbool.com" />ip
</head>utf-8
<body>it
<script>io
//拼接運算符+meta
var a="123";
var b=1;
document.write(b+a);//1123
//邏輯運算符
var c=false;
var d=6;
var e=true;
//js中邏輯運算符,返回最先能判斷表達式結果的
document.write(c||d);//結果爲6
document.write(c||d||e);//結果爲6
</script>
</body>
</html>