-
simplified Chinese character -
Simplified Chinese English
Shangpin China Joins Hands with Beisheng Internet to Create a New Chapter in Website Construction
How to replace Jquery with javascript in website production
-
var $ = document.querySelectorAll.bind(document);
myList = Array.prototype.slice.call(myNodeList);
//JQuery writing method $(parent).append($(child)); //DOM writing parent.appendChild(child)
//JQuery writing method $(parent).prepend($(child)); //DOM writing parent.insertBefore(child, parent.childNodes[0])
//JQuery writing method $(child).remove() //DOM writing child.parentNode.removeChild(child)
Element.prototype.on = Element.prototype.addEventListener;
-
NodeList.prototype.on = function (event, fn) { -
[]['forEach'].call(this, function (el) { -
el.on(event, fn); -
}); -
return this; -
};
Element.prototype.trigger = function (type, data) { var event = document.createEvent('HTMLEvents'); event.initEvent(type, true, true); event.data = data || {}; event.eventName = type; event.target = this; this.dispatchEvent(event); return this; };
NodeList.prototype.trigger = function (event) { []['forEach'].call(this, function (el) { el['trigger'](event); }); return this; };
$("#picture").attr("src", " //url/to/image ");
$("#picture").src = " //url/to/image ";
$('body').addClass('hasJS');
document.body.className = 'hasJS'; // or document.body.className += ' hasJS';
document.body.classList.add('hasJS'); document.body.classList.remove('hasJS'); document.body.classList.toggle('hasJS'); document.body.classList.contains('hasJS');
$(node).css( "color", "red" );
element.style.color = "red";; // or element.style.cssText += 'color:red';
$("body").data("foo", 52);
element.dataset.user = JSON.stringify(user); element.dataset.score = score;
$.ajax({ type: "POST", url: "some.php", data: { name: "John", location: "Boston" } }).done(function( msg ) { alert( "Data Saved: " + msg ); });
function request(type, url, opts, callback) { var xhr = new XMLHttpRequest(); if (typeof opts === 'function') { callback = opts; opts = null; } xhr.open(type, url); var fd = new FormData(); if (type === 'POST' && opts) { for (var key in opts) { fd.append(key, JSON.stringify(opts[key])); } } xhr.onload = function () { callback(JSON.parse(xhr.response)); }; xhr.send(opts ? fd : null); }
var get = request.bind(this, 'GET'); var post = request.bind(this, 'POST');
$foo.animate('slow', { x: '+=10px' });
-
foo.classList.add('animate');
el.addEventListener("webkitTransitionEnd", transitionEnded); el.addEventListener("transitionend", transitionEnded);
Station building process
-
Website requirements -
Website planning scheme -
Page design style -
Confirm delivery for use -
Data entry optimization -
Program design and development -
Follow up service -
contact number 010-60259772
Hot tags
-
Website construction -
Food website construction -
WeChat applet development -
Applet development -
Wuxi website construction -
Website construction of research institute -
Shenyang website construction -
Langfang website construction -
Zhengzhou website construction -
Construction of wedding photography website -
Mobile terminal website construction -
University website production -
Tianjin website construction -
Education website construction -
Brand website construction -
Government website construction -
Beijing website construction -
Website Design -
Website production
Latest articles
-
Website construction scheme: Fresh makeup aesthetics website Type: website construction 2025-03-13 -
Enterprise website construction plan: create a new business card for the network and open the digital future Type: website construction 2025-03-11 -
High end website production solution Type: website construction 2025-02-18
Recommended News
-
Website construction companies should pay more attention to customer needs In the process of website design, we often hear the words, "The designer may not have a distinctive design 2022-02-23 -
Enterprise website construction - CSS style The HTML tag was originally designed to define the content of the document, as shown in the following example: the style sheet determines 2020-05-27 -
How to distinguish the quality of virtual host space Shangpin China, a Beijing website construction company: If you want to run a website well, the first and most important thing is to have a 2013-03-27 -
Firewall classification According to the composition, implementation technology and application environment of firewalls, firewalls can be classified 2015-07-22 -
How to optimize keywords in the late stage of website production Many solutions written by Seoer only involve some analysis and diagnosis of website production, website modification 2013-07-23 -
How to build a medical official website for high-end brand website construction With the rapid development of the Internet, more and more patients choose to search for medical information online, which makes medical treatment 2024-08-08
Make an appointment with a professional consultant to communicate!
Disclaimer