


JavaScript interview question requirements: The following questions must select three questions from questions one to four and use native code to implement them. No framework can be used
. The fifth question is an optional question.
1. Display pictures in a fixed area of the page
1. Each time you click the right arrow, the picture area will scroll to the left to display a picture, and vice versa. ;
2. When it is found that the picture has scrolled to the end, the corresponding arrow becomes unclickable;
3. When the mouse slides the wheel in the picture area, the picture will scroll in response to the direction of the mouse wheel;
2. Use js, html, and css to implement a pop-up prompt control:
1. Implement alert, confirm, and prompt dialog boxes similar to the system respectively;
2. The size of the dialog box is adaptive according to the prompt content (there is a minimum width and height), and it appears in the horizontal and vertical center of the page by default;
3. The dialog box can be dragged;
4. The event simulates the event of the system dialog box (for example: alert dialog box, click the OK button, the dialog box disappears);
5. Solve the problem of IE6 being blocked by the select control;
Three , realize automatic matching of input input boxes
1. Match the characters entered in the input box, and display the matched content in the form of a menu below the input box; 2. Only for English Characters are matched, and the matched content is bolded in the menu;
3. You can select the menu through the up and down arrows on the keyboard, press Enter and write the selected content into the input box;
4. Implement a secondary menu control on the page
1. This control can be bound to any element on the page and appears when the page element is clicked. Menu;
2. The direction in which the menu appears is automatically adjusted according to the location of the page, for example:
3. After the elements in the first-level menu are moved over with the mouse, a second-level menu will appear in the corresponding position. Clicking on the element
in the level menu will trigger an event response
5. Implement a WYSIWYG editor (optional)
Need to provide the following functions :
1. Make the font bold;
2. Align the text left, right, and center;
3. Set the font;
4. Set the font size;
5. Set the font color;
6. Insert hyperlink;
7. Insert picture;
Answer packaging

去掉重复并排序的方法:1、使用“Array.from(new Set(arr))”或者“[…new Set(arr)]”语句,去掉数组中的重复元素,返回去重后的新数组;2、利用sort()对去重数组进行排序,语法“去重数组.sort()”。

本篇文章给大家带来了关于JavaScript的相关知识,其中主要介绍了关于Symbol类型、隐藏属性及全局注册表的相关问题,包括了Symbol类型的描述、Symbol不会隐式转字符串等问题,下面一起来看一下,希望对大家有帮助。

怎么制作文字轮播与图片轮播?大家第一想到的是不是利用js,其实利用纯CSS也能实现文字轮播与图片轮播,下面来看看实现方法,希望对大家有所帮助!

本篇文章给大家带来了关于JavaScript的相关知识,其中主要介绍了关于对象的构造函数和new操作符,构造函数是所有对象的成员方法中,最早被调用的那个,下面一起来看一下吧,希望对大家有帮助。

本篇文章给大家带来了关于JavaScript的相关知识,其中主要介绍了关于面向对象的相关问题,包括了属性描述符、数据描述符、存取描述符等等内容,下面一起来看一下,希望对大家有帮助。

方法:1、利用“点击元素对象.unbind("click");”方法,该方法可以移除被选元素的事件处理程序;2、利用“点击元素对象.off("click");”方法,该方法可以移除通过on()方法添加的事件处理程序。

本篇文章给大家带来了关于JavaScript的相关知识,其中主要介绍了关于BOM操作的相关问题,包括了window对象的常见事件、JavaScript执行机制等等相关内容,下面一起来看一下,希望对大家有帮助。

foreach不是es6的方法。foreach是es3中一个遍历数组的方法,可以调用数组的每个元素,并将元素传给回调函数进行处理,语法“array.forEach(function(当前元素,索引,数组){...})”;该方法不处理空数组。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SublimeText3 Linux new version
SublimeText3 Linux latest version

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 English version
Recommended: Win version, supports code prompts!
