我正在处理html,css和js中的格式输入字段.
一个例子是具有以下模式的日期格式字段:**.**.****.当我在输入字段中输入内容时,当我到达框的末尾时,Chrome会"向左滚动".
我怎么能阻止这个?

分隔每个字符的行由背景图像构成.使用等宽字体和集合,letter-spacing每个字符进入"字段".如果达到输入字段的大小,它将向前滚动并使用背景.
为了解决这个问题,我将输入元素放入div元素,将div元素限制为宽度并添加边框和overflow: none;div.结果:它在Firefox中运行良好,Chrome仍然将输入内容滚动到左侧.
我做错了吗?还有其他解决方案吗?是否有-webkit属性来防止这种情况?先感谢您!
正如标题所说,我正在搜索一个非常小的富文本编辑器.我见过的每个编辑都很大,功能太多了.我只需要按钮使文本变为粗体,斜体,设置文本字体,将样式设置为段落或标题以及添加/编辑链接.我不会有一个很大的图书馆.
我想我需要改变一下.我必须将图像上传(已存在)集成为一项功能,以在内容中添加和调整图像大小.
提前致谢.
I am working on a web app containing widgets that should be lazily loaded using dynamic imports. Each widget should receive its separate bundle for it and their dependencies to only be fetched by the browser once it is being requested by the user. There's an exception to this: Popular widgets should be included in the main bundle as well as the library classes they use or extend. Below you see the folder structure I intend to achieve and …
我目前在从JS中的关联数组中删除条目时遇到问题.
我试过这个:
myArray['key'] = value;
myArray['key1'] = value1;
...
delete myArray['key'];
Run Code Online (Sandbox Code Playgroud)
但我在我的申请中得到以下结果:
[ undefined, { key1: 'value1', key2: 'value2' }, undefined,
{ key1: 'value1', key2: 'value2' }, undefined, undefined ]
Run Code Online (Sandbox Code Playgroud)
如何删除整个条目,键和值?我发现方法splice()但我认为它使用不同的索引.我无法通过将密钥传递给splice()来删除我想要的条目.