(九)javaScript的基本使用
<script type="text/javascript">
var userName;
var userAge;
function interInfo(){
userName=prompt("请输入您的姓名");
userAge=prompt("请输入您的年龄");
}
function showInfo(){
document.write("您的名字是"+userName+"您的年龄是"+userAge);
}
</script>
</head>
<body>
<p>信息登记系统</p>
<button onclick="interInfo();">填写个人信息</button>
<button onclick="showInfo();">显示信息</button>
</body>
结果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAARwAAACaCAIAAAD0CGDGAAASBUlEQVR4nO2df4zU1oHH33/9r1L/2VSqtDlVQhF/UKloddmT5voPc+IP34lEU11VRySnQdXVbSNu/giB6k5jZbniCm2n0iIMLLj8uPMSHQMnhSlC0dDb4IgiBkU6J432pkAxP5aYBHa9JISd3fX94RmP1z/evJl5s7Psfj8aIfv5/bTfx+/52QBxmJmZmZmamjJNc2pqamZmhj3himV+8eJFURRFURwbG/vkk0+8wGvXro2NjXnhFy9eZMnn3XffdROYnJwURXHPnj22bQfDbdves2ePKIrXrl1LSuu60xPbyLaJ6cburQv73nj5RULICy9t3Tnx6eNAzFsX9v3opRcIeeGlHxWuPPZCdm59kRDy4tadF64087myj5B9V2IyZyzr1rl6ti+/US/Idd1pr6wX3jg37dbMiZGR330057qu6z69c/lUYSSfz+fzI4Xx98xmlR+b58ZG8vl8fmTs3PJgdZ8Xvk+duHLnKTXB3BU1X7jg17lO7daFsZF8Pj9yrurFql4Y3+8lLZy6XM+yNn3l1P4Rr5xABR5e80LVK4+r5/blT5m1YM5z1ffGwhlFynvqR9p/6pr5/lh+7PLDSBsKpy7f+Wgin5/41HVd0lavDXb9trs8FV66fvDBBzt27BAj7Nixg9EohyqV67qTk5NeEaOjo8VisVgsjo6OekVQjQKteHh5LK9emetN5p9O5PfVrew17UnlNLzqhVS8BsDp6Wld13ft2uV19Hw+r+v69PQ0ew50qVzXffLkyZkzZ3bv3u0Zu3v37jNnzjx58mRFLtmaZfpCIT9+rTdO1cxT+X3nbvUk7whtS7UeaCkVAMk8hlQxQCrQD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3Ozc3dunULh5wBAgrQt6+++ur+/fufPynu37//1Vdf4ZAzQEABADJCQAEAMkJAAQAyQkABADJCQAEAMkJAAQAyQkABADJCQAEAMkJAAQAyQkABADJCQAEAMkJAAQAyQkABADJCQAEAMkJAAQAyQkABADJCQAEAMkJAAQAyQkABADJKD6hpmmtrawe9bwAAo2ttbc00zZSAXrt27erVq2goAECq1dXVq1evLi0tpQT0o48+unz58vnz58+dO6cBAEDMuXPnzp8/f/ny5Y8++igloCsrK7VazbbtpaWlXwIAQMzS0pJt27VabWVlJSWgm5ubKysry8vLN2/efB8AAGJu3ry5vLy8srKyubmZElAAAOjL/wO4YTuLwTnM6gAAAABJRU5ErkJgggA=" alt="" />
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPgAAABxCAIAAAB3DPlMAAAIQElEQVR4nO2cTXPTRhjH9+v02pMGpjcIwxH4AMCRIUxJCJDcMsPkAwSM7dixSUwJL53eag69waG8xAmFHDrJTPqWTmDKtKVmAu3IsXswGEXaffRIlrTa7P83GkZaPbv7rPyTskiWRRsYy2ef/xpp0Z2vToTuBADF240N3SnsEyB6rtlpNHSnsE+A6Lnm/fS07hT2CRA91/x35gxmL4kA0XPN++lpzF4SAaLnmnel0r8TE7qz2A+I+9/ex5Lb5cfLk67jfPf1N9ozMX0RPZBjuisrruN0m03diRgPRM81fdE7k5O6EzEeiJ5v2m334EHXcXTnYTwQPe+4X3zhOk73wQPdiZgNRM877tGjruN0ZmZ0J2I2ED3vdEZHXcdxDx/WnYjZQPS880F0zF6GA6Lnnd16vS/67uys7lwMBqLnnYHo7vHjunMxGIied7rN5gfRHae3vq47HVOB6Hmn/8wIs5chgei5Z319IDpmL7GB6AbQf2b0Yfayva07HSOB6AbgFX333j3d6RgJRDeAzqlTn2YvJ0/qTsdIILoBDJ4ZYfYSG4huAJ2ZGa/omL3EgCW6EILY5FdMqUrU9r1wEkg7pVA+PTNyHHw9PR5xRJeWcGpJY3zaDWoxLYzUfuy09bruE911nF67r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UWAAAAAElFTkSuQmCCAA==" alt="" />aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN8AAABJCAIAAAAypGQlAAAInUlEQVR4nO2bzavcVBTA81e85biaxVu04GPwA6KrkS4iFBkRvKLIiEjAIrNQQRDvQiQidJZxYSOtElw4KGgUkYjgLXQxIpjSTbT4orVtbB99t9XX1k7HRd7MZPJxc5JM5t3K+RHsJLm599yTX06SmafCEURWlIMOAEFyQTsReUE7EXlBO+9hNre2Sy0HHW9piu3856GtaIGsygBJYdv2QQfVCJtb21MwaKcUEEISq8eOHftfCpqw89vv/j78YPDpZ9en0+n7H+y+9fbVOxO0E27n2CRDlt7sW5qSC3VBXS9I23n+/Hm4oMzoKJrlJwNMhxEyo0fdILHVpcvRW7ZOnYBzzkOXdgfRx6VW1E0mADrlhJ0vvnx5c2v78Sf/PH1mL7qVf/Pt3wI7E6GCch8yg+gjDxZfzbEgdt6aAVktghkdfRQmt/qWtvBhyYRMLQpI28k5BwoaMqr2LNcixPI459ylCnUXYQgvo1mG94/hLo0mFbq0b3meRYg5nk191ma/5/g057uKmdt5dWcynU5fee2vza3t51689Oln1yM7fzi9B6+dzOgaGaWjSKzS54fD59j4W5H4hEbnr2k744iODJyBHhnk2z3N9LLspC7nPGAmtcbpmabtTJ/aWZv4hlq188efbm5ubT//0uXzv91+/c0rP5+9dW138uobV07Z/NLlO6fP7MHs9EwtU86FSrPLLT7ZaqzOzvtPkGiJVu9770a0RKvXTinRknc4ZBqN3tmBu2JqRjHZPdVgCTs559x3DK2Vd51xHjcvvm35YWGVtfPd4ztRpfzl19uJN6FHHvtjc2v74094np2CzM8DdqmiacXNyiCpnS7VzP2HFjbszp5BG62dwF2eOaCDpXOg9ahtJez0bdLu6aY1JD3q+JxzHvqO0evq9uJRLHln5zzTzvjl59Wpnadsvrm1ff/DwbXdydlzt554+uKTz1z8/Y9/927ejax9460rAjsz9Ypvb6Z2aprWIuY4+di+zHrsHJtdfRTwqCJFesafcnxL050wfgDPW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JGflaRF0Mka8lOZe9jOyvFUHq5wiHvUzpWM2wTlsll4hZVNDbznvDbVQgJGBaHp/MAnG33OzJtglKbzU4eCCOLzL8xsXuIEZwvYs6BZ4YFAicXjCoRoND+lkjC3MN2/4MBS+RHsFaS0MsX3lPTc8s5H5iow3XXOSrUDBRaW6qHR/FSzM6994fVTamjIlGtS/DiSdxUCoxdPqcIM4Re6uLfKZyUdbXP5gYed2WE6pTWv3szVwiuqMqWfO+FhlapD6c7hVLO5pp2Ze5vIjyD+xNDiCQqiAuZHajszo8n7DGkvGAvOCnOR1+Hcucyxms7Pqs79ahMFmdcKRgHGAcm4+MpOt0+Mslo1BSVBXCQy/RDE33R+gOc+8yIRTLZyfsRzFERYgVp3dkHLzAMzjwXmpWY280av0KZwmivPDyS8dA+FVpXdCwzpwOwUjw1pGc/d3CTg6azQYJojQZ0+K5+bavkBXo15/4WPKA5e0OYg7YSPWir7kJ6bsLOwytavXsBoK9Q28ejpmU4B8pXKDyTmNdkJmZ5gr5x2lmov7mFt+YE0EAydV0oLIxQPkXngCtWc1rEzHVC1ypS3UbC9bANg7gTB522criU/kAaZJRB4VLX8ZKZIHHxZih+SCtOR11JcZhIt8xCHV5jNUu1Lsc785B2V2J5ImmC4OgGsE1A0ZdXJ66TsLrh8kL0VrgEgTeenQrN0S4isDeWnMnJdKwgSB+1E5AXtROQF7UTkBe1E5AXtROQF7UTkBe1E5AXtROQF7UTkBe1E5AXtROQF7UTkBe1E5AXtROQF7UTkBe1E5AXtROQF7UTkBe1E5AXtROTlPyBRIXXTrxMTAAAAAElFTkSuQmCCAA==" alt="" />
解析: prompt(msg,defaultText)参数
描述 | |
---|---|
msg | 可选。要在对话框中显示的纯文本(而不是 HTML 格式的文本)。 |
defaultText | 可选。默认的输入文本。 |
<script type="text/javascript">
function jisuan(){
var price=document.jisuanqi.price.value;
var mount=document.jisuanqi.mount.value;
var total=parseFloat(price)*parseFloat(mount);
document.jisuanqi.total.value=total;
}
</script>
</head>
<body contextmenu="">
<p>竞拍系统</p>
<form name="jisuanqi">
竞拍价格:<input type="text" name="price"/><br/>
购买数量:<input type="text" name="mount"/><br/>
预计总价:<input type="text" name="total" readonly="readonly" /><br/>
<input type="button" value="计算总价" onclick="jisuan()"/>
</form>
</body>
结果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAARkAAADCCAIAAADy/CEYAAASiklEQVR4nO2c74/cxn2H51/om7t3pxeFIOiFYkS49Fp0m/TFNveCRYRg4wphkLrY2jC2qKDuC9dA4CIsUPQYBMi+iCBKJ4n60ZpnwVmoQLs5WAajAqGhAN1CQNZIgGyli2g7Z9P2yRrFPluxsn3B/cEjZ4bD3SH3bvfzYHBYDodDcjjPfoezPBIKAFABmfYBADAjwCUA1ACXAFADXAJADXDpAHP0+P1MadrHO+Oku/TJHx8Pk8zifkBP4DjOtA8qF44ev9+TBi7lzWy6FFs8derUTOoUc+n1n3z8hRX/Rzce9Xq9cxcffvdfPvz8CVyagLZlNP3+58Br6IYbUEqp37brRstPFC/WpbalN7xkdtfWCBfDlap6RNKle/fuyevkmctEs7vxA0weRuCZFcONN6lr7D1626n12z1wjXK9fwmipQw33gCypxxz6bm/f+/o8ft/+Y3fvPGz3XBQ99rrHwtcih2qVNsHnqnXmh2545twXwL8Zk13upTSjqX1e3gCr1Gqt4arXCN+UTuWbkY6Y/zCuZRSv1mtNn3+wWt2tMJ0lz4bILOYhmcu15qJU+/a2uhE9/RbZidOIekSpVRSp8AzShXbtXXd7lBKqWsQwx0dhlD6wQXobzO8eoFrVO1Ox9Z1qz049UGZfs3R0xyuSmfo0oc7T3q93ul/fP/o8ft//dy7P7rxKHTpp2/sysclzyybjC+6NA0yXx+a6RyZ+M2q7vjhMfNUotRv1qrOoFu5hmZ3vIauN1rdfhULe84iKtvo+DpWzR59cwSuUbG4XyS5zz2Iu194+Hm7FEW0pd+q18L+3nUqmtVhuRR+X3mWYbeTZ5p0KdkRB2WiGRPFpf+98+nR4/f/5vn37v368Yv/9MHP3/zso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QmCCAA==" alt="" /> 解析: 获取表单中输入的数据: document.表单名.表单元素名.value;
<script type="text/javascript">
function jisuan(){
var grade; //不同支付方式的折扣
var f=document.jisuanqi.pay.value; //拿到select表单元素的值
var price=document.jisuanqi.price.value;
var mount=document.jisuanqi.mount.value; switch(parseInt(f)){
case 1: grade=0.8;break;
case 2: grade=0.9;break;
case 3: grade=1;break;
default: alert("重新选择支付方式");
}
var total=parseFloat(price)*parseFloat(mount)*grade;
document.jisuanqi.total.value=total;
}
</script>
</head>
<body contextmenu="">
<p>竞拍系统</p>
<form name="jisuanqi">
竞拍价格:<input type="text" name="price" /><br/>
购买数量:<input type="text" name="mount"/><br/>
支付方式:<select name="pay">
<option value="1">支付宝/微信</option>
<option value="2">银行卡</option>
<option value="3">充值卡</option>
</select><br/>
预计总价:<input type="text" name="total" readonly="readonly" /><br/>
<input type="button" value="计算总价" onclick="jisuan()"/>
</form>
</body>
结果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAR8AAADFCAIAAADi52HnAAAUq0lEQVR4nO2d0Y/jxn3H56/Yfdt7Ohj3cDnksOi2gNp9UbEPKrAIFHQRBe0VKoKDABsbObE3DlCED0WXQYAIjZ3QjWsuYifcurBwBVrlUASKCpTuOracbSwjBqrWynHtrC3bt3d07LUd37EPlCiKnBkOKQ6p1X4/EBbkcDgckfPhbzikuMQGAMiB5F0BkJxLV2/F+uRd33NHtF0f/eFV9yMyOw9UQhiGkXelpHDp6i1HGNiVPYtpV2D2oYceWkjBAnb97Ocffm7Nev7GB47jPPmPd7/1t+9/dg92zUBXU5rWaHpoNipKe2jbtm119brSsjgrjsnWrq5WaZjh5L5eIkyUtlDRE8J2vfHGG+KCmeoqKen9YAXD1RiaallpB3dyW5muvW7URkdi2FaK9dFB8edS2sEdIPqVA3Z95cF3Ll299Wdf/O0LL566XcF//9mHHLsCVRXa90NTrdSaPbH6zbgtDlazVjH6tm33tNKozYcwG4V6y1vUVoIHtadVVF9jDB64tm3bVrNabVrs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AAAAAASUVORK5CYIIA" alt="" /> 解析: 表单元素中的value 属性可设置或返回密码域的默认值。 而在option元素中。value属性设置或返回的是自定义的值,这个自定义的值与用户选择的值一对一对应。
<style type="text/css">
.aa{
width:50px;
height:20px;
}
</style>
<script>
function jisuan(op){
var sum1=document.jisuanqi.num1.value;
var sum2=document.jisuanqi.num2.value;
if(op=="jia"){
var result=parseFloat(sum1)+parseFloat(sum2);
}else if(op=="jian"){
var result=parseFloat(sum1)-parseFloat(sum2);
}else if(op=="cheng"){
var result=parseFloat(sum1)*parseFloat(sum2);
}else if(op=="chu"){
var result=parseFloat(sum1)/parseFloat(sum2);
}
document.jisuanqi.result.value=result;
}
</script>
</head>
<body>
<p>小型计算器</p>
<form name="jisuanqi">
第一个数<input type="text" name="num1" /><br/>
第二个数<input type="text" name="num2" /><br/><br/>
<input type="button" value="+" name="plus" class="aa" onclick="jisuan('jia');"/>
<input type="button" value="-" name="jian" class="aa" onclick="jisuan('jian');"/>
<input type="button" value="*" name="cheng" class="aa" onclick="jisuan('cheng');"/>
<input type="button" value="/" name="chu" class="aa" onclick="jisuan('chu');"/><br/><br/>
计算结果<input type="text" name="result"/>
</form>
</body>
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAASAAAADBCAIAAADgjvpEAAALw0lEQVR4nO3dz28cZx3H8fkr6gvIx0pQKUcjFcmHHpzAwerJqoSwkEDOocJJ+sNNQgpC0D1VEc16bRzbazvEGwuEBaExASRLHLpt4mZbJyUC4W5LSDYViTYqlJzIcEhib2bn+c7MzvP1PDN+v7SH3dmZZ7559P3kmfWPsfc5ADVe1gUARUbAAEUEDFBEwABF3oXfXeDBg4fSw/MBqCFggCICBigiYIAiAgYoImCAIgIGKCJggCICBigiYIAiAgYoImCAIgIGKCJggCICBigiYIAiAgYoShYwz0sbyDgjCPuEvpW+KkCJzYB5BsIISQMTOrJwxjj7R/2jgd7ZX8E6+1jeGH9LbyPH2ZOAQVVuAtZbEggYspV9wBKdxXQVarre4xIR2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FDFiaFUzYEjly4CziCvaEZm14HwkrogIGrOdDkh64veKZ9kkQsOogH8gKKU8B88yfdrY3Jlphug8MHdl0LtOTbVLArk8N7JtYbz980awO832wYspNwCIv7boPibOlh4vGwCGB550v5RWsXT858nSf53n9A6NTjbb8z0FO5SZgkVsi3425UVjuutMojOC7MbnIlgs9sEs/yWH9M1jkuy5MLrLlQg/0ErBccGFykS0XeoCAobBc6AEChsJyoQeKHDAg6zYsbsAAFxAwQBEBAxQRMEARAQMUETBAEQEDFBEwQBEBAxQRMEARAQMUETBAEQEDFBEwQBEBAxQRMEARAQMUETBA0f8BUb9WKwPNW5YAAAAASUVORK5CYIIA" alt="" />
<script type="text/javascript">
function nameOver(){
if(document.f.userName.value=="请输入3~8个字符"){ //鼠标移到输入框,清空
document.f.userName.value="";
}
}
function nameOut(){
if(document.f.userName.value==""){ //鼠标移开输入框,如果没有输入,提醒输入
document.f.userName.value="请输入3~8个字符";
}
}
function butOver(){
document.f.button.value="悬浮";
}
function butOut(){
document.f.button.value="离开";
}
</script>
</head>
<body >
<form name="f">
用户名: <input type="text" value="请输入3~8个字符" name="userName" onMouseOver="nameOver()" onMouseOut="nameOut()"/><br/>
密 码:<input type="password" name="userPass" /><br/>
<input type="button" value="正常" onMouseOver="butOver()" name="button" onMouseOut="butOut()"/>
</form>
</body>
结果:
解析 :
用图片代替提交按钮
<script type="text/javascript">
function submit(){
document.f.submit();
}
</script>
</head>
<body >
<form name="f">
用户名:<input type="text"/><br/>
密 码:<input type="password" /><br/>
确认密码:<input type="password" /><br/>
<input type="image" src="../images/zhuce.jpg" onclick="submit()"/>
</form>
</body>
结果:
解析:
(九)javaScript的基本使用的更多相关文章
- javaScript高级教程(九) ------javascript对象字面量--------困扰已久的问题
在编程语言中,字面量是一种表示值的记法.例如,"Hello, World!" 在许多语言中都表示一个字符串字面量(string literal ),JavaScript也不例外. ...
- JavaScript学习总结(九)——Javascript面向(基于)对象编程
一.澄清概念 1.JS中"基于对象=面向对象" 2.JS中没有类(Class),但是它取了一个新的名字叫“原型对象”,因此"类=原型对象" 二.类(原型对象)和 ...
- JavaScript学习总结——转
JavaScript学习总结(一)——JavaScript基础 JavaScript学习总结(二)——逻辑Not运算符详解 JavaScript学习总结(三)——逻辑And运算符详解 JavaScri ...
- JavaScript知识点的总结
一.Javascript的含义 是一种解释性的语言,主要给网页添加各色各样的动态功能,同时为用户提供浏览效果. 二.JavaScript的主要特点 1. 简单性 2. 动态性 3. 安全性 4. 跨平 ...
- javascript基础语法及使用
前几年自学过JavaScript,由于从事安卓开发,就放弃了对js的学习,今天又捡起来重新学习了下,希望对大家有所帮助. 首先介绍下什么是JavaScript. JavaScript 是互联网上最流行 ...
- JavaScript基础:
一. JavaScript概述 JavaScript一种直译式脚本语言,是一种动态类型.弱类型.基于原型的语言,内置支持类型. document.write("<h1>这是一个标 ...
- h5面试题集合
一.闭包的理解: 使用闭包主要是为了设计私有的方法和变量.闭包的优点是可以避免全局变量的污染,缺点是闭包会常驻内存,会增大内存使用量,使用不当很容易造成内存泄露. 闭包三个特性: 1.函数嵌套函数 ; ...
- Html5+js测试题【完整版】
一.闭包的理解:使用闭包主要是为了设计私有的方法和变量.闭包的优点是可以避免全局变量的污染,缺点是闭包会常驻内存,会增大内存使用量,使用不当很容易造成内存泄露.闭包三个特性: 1.函数嵌套函数 ; 2 ...
- 从头开始学JavaScript (九)——执行环境和作用域
原文:从头开始学JavaScript (九)--执行环境和作用域 一.执行环境:定义了变量或者函数有权访问的其他数据,决定了它们各自的行为.每个执行环境都有与之关联的变量对象. 变量对象:保存着环境中 ...
- Javascript多线程引擎(九)
Javascript多线程引擎(九)--垃圾回收 垃圾回收这个话题对Programer来说是非常老旧的话题, 从手动的malloc/free 到半自动的 引用计数 再到全自动的 mark-sweep ...
随机推荐
- .hive命令的3种调用方式 以及源码
安装 hive后 在命令行 如输入 Hive -h -后面随便输入.让让他报错进入命令提示界面 -d 定义一个变量 两种形式 -d A=B or --define A=B -e 执行sql语句 hi ...
- Redhat6.4下配置本地yum
一.准备工作1. Linux安装盘插入光驱 2. 挂载光驱 [root@localhost ~]# mount /dev/cdrom /mnt/ mount: block device /dev/s ...
- spring EL表达式,null-safe表达式
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns:xsi="http://ww ...
- DotNet加密方式解析--数字签名
马上就要过年回村里了,村里没有wifi,没有4G,没有流量,更加重要的是过几天电脑就得卖掉换车票了,得赶紧写几篇博客. 数据安全的相关技术在现在愈来愈变得重要,因为人们对于自身的信息都有一种保护的欲望 ...
- Intellij IDEA 建立文件夹目录问题
问题: NEW一个package常出现文件夹层次问题 解决: 1.选中当前文件夹(要在该文件夹下添加): 2.右击此处: 3.添加即可. 链接:http://stackoverflow.com/que ...
- 微信前端面试题----js实现LazyMan
这是微信小程序的一道面试题,题目是这样的: 实现一个LazyMan,可以按照以下方式调用:LazyMan("Hank")输出:Hi! This is Hank! LazyMan(& ...
- sqlcmd命令导入大容量的SQL本地文件至SQL server 2008
由于开发工作在测试环境,需要构造测试数据,经常遇到100+M大小的*.sql文件需要导入到测试库的情况,由于SSMS里对导入文件的大小有限制: 会出现上图的报错!上网查了下,超过80M的文件是不能在S ...
- 重写titleView
在一些特定的情况下不能使用原有的titleView需要重写titleView代码如下 #import "TitleView.h" @implementation TitleView ...
- event.target的第一次
今天在学习其他人代码的时候见到了event.target.nodeName,event.target.dataset.刚开始是一头雾水,便google一下.发现大多数给出的词条都是有关jQuery事件 ...
- slf4j+log4j的使用
maven依赖引入 <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j1 ...