Found a total of 10000 related content
How to implement AJAX and JSONP in native JS
Article Introduction:I believe there are always some friends who don’t like to use plug-ins when writing code and prefer to use native JS to write. So today I will bring you a tutorial to use native JavaScript to implement AJAX and JSONP.
2017-12-04
comment 0
2080
A detailed introduction to JS tool class, how to operate cookies
Article Introduction:What are the JS tool operations? The following introduces the complete code and implementation principle of operating the Cookie tool class. Rewrite the Cookie tool class, which can be introduced in edit.jsp and used directly in other imported js.
2018-07-25
comment 0
1216
Use Javascript to move and sort select drop-down menus_jquery
Article Introduction:This article will introduce to you how to use js to implement drop-down menus with the option to move each other and implement menu sorting. The code is simple and easy to understand and has reference value. Friends who need it can refer to it.
2016-05-16
comment 0
1525
Several JavaScript methods to implement native ajax
Article Introduction:Since js has various frameworks, such as jquery, using ajax has become quite simple. But sometimes in order to pursue simplicity, there may be no need to load a huge js plug-in like jquery in the project. But what should I do if I want to use ajax function? Let me share with you several ways to use javascript to implement native ajax.
2017-11-18
comment 0
2756
Native JS implements smooth return to the top component_javascript skills
Article Introduction:The return to top component is an extremely common web page function with simple requirements: after the page scrolls a certain distance, a return to top button is displayed. Clicking this button can scroll the scroll bar back to the beginning of the page. Next, this article will introduce to you the native JS implements smooth return to the top component. Friends who need it can refer to it.
2016-05-16
comment 0
2135
JavaScript encapsulates a function with fade-in and fade-out effects
Article Introduction:When it comes to the gradient display and disappearance of js, most friends will think of fadeIn(), fadeOut() or fadeToggle() in JQuery. But what if the huge JQuery library is called just to introduce such an effect? In other words, I improve myself by implementing some functions using native js~
2018-03-20
comment 0
2137
Fun JavaScript question: Adding large integer strings
Article Introduction:Many languages provide native support for adding two large integer strings. For example, Java provides the BigInteger class, but JS does not support this aspect, so we have to rely on ourselves to implement it.
2017-01-22
comment 0
2078
Native JS+Canvas backgammon game_javascript skills
Article Introduction:This article mainly introduces an example of implementing the backgammon game with native JS+Canvas. The editor thinks it is quite good, so I will share it with you now and give it as a reference. Let’s follow the editor and take a look.
2017-06-28
comment 0
1720
How to pop up prompt box and jump in php
Article Introduction:How to implement pop-up prompt box and jump in PHP: first download the layer pop-up plug-in and introduce the plug-in; then request PHP to perform business operations in the JS code. After the operation is successful, the message returned by the request will be prompted with "layer.msg()" ; After the final setting prompt is completed, just jump to the page.
2020-05-09
comment 0
4998
How to implement running step counting and sports check-in in uniapp
Article Introduction:How to implement running step counting and sports check-in in uniapp With the improvement of health awareness, more and more people choose running as a daily exercise. In order to better record running data and encourage continuous exercise, we can implement running step counting and exercise check-in functions in uniapp. This article will introduce how to use the uniapp framework and related plug-ins to implement these functions, and attach specific code examples. 1. Introducing plug-ins to implement the running step counting function. First, introduce the pedometer plug-in provided by the WeChat applet into the uniapp project.
2023-10-18
comment 0
2163
How to use JS and Baidu Maps to implement map geocoding function
Article Introduction:How to use JS and Baidu Maps to implement map geocoding function Map geocoding refers to the process of converting a specific location into corresponding longitude and latitude coordinates or converting longitude and latitude coordinates into a specific address description. This function is very common in map applications. In actual development, the geocoding function can be easily implemented using JS and Baidu Map API. This article will introduce how to implement geocoding using JS and Baidu Map API, and provide specific code examples. 1. Preparation work First, we need to introduce the JS library of Baidu Map. In HT
2023-11-21
comment 0
808
User management--implementing secondary linkage using jquery's ajax
Article Introduction:Page effect implementation steps 1. Introduce struts plug-in package that integrates json 2. The page uses jquery's ajax to call the second-level linkage of js//ajax's second-level linkage, and uses the selected unit to query the list of corresponding unit names under the unit. function findJctUnit(o){ //The text content of the unit to which the goods belong var jct = $(o).find("option:selected").t
2017-07-20
comment 0
1326
Explanation of tab label switching effect using JavaScript
Article Introduction:This is a tab switching effect based on js. It is a tab switching effect source code produced by native javascript without jQuery. Click on the title above to realize the switching function of the corresponding page, which is of great practical value. Running effect diagram: ------------------- View the effect and download the source code ------------------- Tips: Browse If the browser does not work properly, you can try switching the browsing mode. The tab label switching effect code implemented in js to share with everyone is as follows
2017-08-17
comment 0
1699
php与JS调用的有关问题
Article Introduction:
php与JS调用的问题我想在PHP中嵌入JS然后做成插件,有人说js和php交互要用到jquery...这要怎么做,我JS己经是做好的,就想做一个全新的PHP放进JS去!求大神这个JS还有FLASH的------解决方案--------------------您并没有说明php在里面充当什么角色
------解决方案-------------------
2016-06-13
comment 0
861
Native JS implements LOADING effect_javascript skills
Article Introduction:This article mainly introduces you to the code of the LOADING effect implemented by native JS. The effect is very good, and the color and speed can be customized. I recommend it to everyone. I hope you will like it.
2016-05-16
comment 0
1412
How to use JS and Amap to implement the location heat map function
Article Introduction:How to use JS and Amap to implement the location heat map function. With the popularity of the Internet and mobile devices, people's demand for geographical location information is getting higher and higher. Location heat maps can visually display the heat distribution of various locations in a certain area, helping us better understand data and trends. This article will introduce how to use JS and Amap to implement the location heat map function, and provide specific code examples. 1. Preparation work Before implementation, we need to complete the following preparation work: register an account on the Gaode open platform and apply for relevant APIs to introduce Gaode
2023-11-21
comment 0
1263