![](https://img-blog.csdnimg.cn/a482e5293e2c4cd8a6a7c9657c0d194c.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
JavaScript
文章平均质量分 65
发布学习JS的总结和使用JS时常见问题以及解决办法
lywmofan
这个作者很懒,什么都没留下…
展开
-
JavaScript 弹窗
开发者可以在 JavaScript 中创建三种消息框:警告框、确认框、提示框。Window.alert()Window.alert()方法显示一个警告对话框,上面显示有指定的文本内容以及一个"确定"按钮。语法window.alert(message);window.alert() 方法可以不带上window对象,直接使用**alert()**方法.message是要显示在对话框中的文本字符串,如果传入其他类型的值,会转换成字符串.示例window.alert("Hello wor.原创 2022-04-13 18:49:34 · 1342 阅读 · 0 评论 -
HTML点击上传本地图片到页面 并在页面上显示上传的图片 以及遇到的问题
<div class="col-md-5"> <img id="img-avatar" src="../images/index/user.jpg" class="img-responsive" alt="无法显示默认头像" /></div><div class="col-md-offset-2 col-md-4"> <input id="chooseImage" type="file" name="file" accept="image/*.原创 2022-04-13 16:40:23 · 8972 阅读 · 0 评论