html
hamimelon2020
这个作者很懒,什么都没留下…
展开
-
为什么什么都console.log不出来。console.log(depsMap)
变量为原始类型时Set存储变量为对象时可以用map存储多个对象时用weakMap存储https://www.gxlsystem.com/qianduan-20707.html<!DOCTYPE html><html> <head> <title>document.write() Example</title> </head> <body> <script原创 2022-04-21 10:03:53 · 308 阅读 · 0 评论 -
console.log(map.keys)和console.log(weakmap.keys)的区别
<!DOCTYPE html><html> <head> <title>document.write() Example</title> </head> <body> <script type="text/javascript"> const map = new Map();const weakmap = new WeakMap();原创 2022-04-21 09:43:16 · 124 阅读 · 0 评论 -
Map和WeakMap的区别
<!DOCTYPE html><html> <head> <title>document.write() Example</title> </head> <body> <script type="text/javascript"> const map = new Map();const weakmap = new WeakMap();原创 2022-04-20 15:02:04 · 105 阅读 · 0 评论 -
console.log(target[key])的值是什么
<!DOCTYPE html><html> <head> <title>document.write() Example</title> </head> <body> <script type="text/javascript"> const data = {ok:true, text:'hello world'}const bucket原创 2022-04-20 14:32:47 · 175 阅读 · 0 评论 -
js如何与html进行转换,在浏览器中显示?js显示不了弹窗,我暂时,那就用html实现,加了插件,然后,右键,选用浏览器打开
live 什么的插件原创 2021-03-26 13:08:17 · 99 阅读 · 0 评论 -
list 代码 todolist的写法,疑问,怎么自动添加新的todolist呢,怎么自动添加新的image呢,管理后台怎么衔接呢?
<!-- index.hml --><div class="container"> <list class="todo-wraper"> <list-item for="{{todolist}}" class="todo-item"> <text class="todo-title">{{$item.title}}</text> <text class="t原创 2021-01-28 13:37:45 · 78 阅读 · 0 评论 -
三张图片间歇性展示的代码
<!-- index.hml --><div class="container"> <image-animator class="image-player" ref="animator" images="{{images}}" duration="10s" onclick="handleClick"></image-animator></div>// index.jsexport default { data: {原创 2021-01-28 13:26:27 · 147 阅读 · 0 评论 -
button的实现代码
<!-- index.hml --><div class="container"> <input type="button" class="button" value="Button"></input></div>/* index.css */.button:active { background-color: #FF0000;/*按钮被激活时,背景颜色变为#888888 */}...原创 2021-01-26 21:55:20 · 759 阅读 · 1 评论 -
这个图片的引用为什么不成功
<div class="container"> <div class="header" onclick="exitApp"> <image class="back" src="/Users/ivyone/DevEcoStudioProjects/MyApplication2/entry/src/main/resources/base/media/90.jpg"></image> <text class="title原创 2021-01-26 10:14:09 · 188 阅读 · 0 评论 -
在vscode中没有运行成功的html文件
<!DOCTYPE html><html><body><h2>我的第一张网页</h2><p id="demo"></p><script>document.getElementById("demo").innerHTML = "Hello World!";</script></body></html>为什么呢,与src和static有什么关系?原创 2020-10-12 12:36:48 · 756 阅读 · 0 评论