JQuery + vue. js: a complete example of a nine-cell jigsaw puzzle game
The example in this article describes the jiugongge jigsaw puzzle game implemented by jQuery + vue. js. We will share this with you for your reference. The details are as follows:
The first method is placed directly under the relative path, position:./static/js/main.js,./static/css/main.css,./static/img/test.pngThe second way: ES6 import method introduced, was introduced into the file Test.js tail added export default {fn}//FN is introduced, in Main.js introduced import test from './assets/js/t Est.js ' vue.prototype. $test = test;Global introduction, How to reference in subcomponent
execute the file? Node B.js ===== "Node filenameIv. simple login with node. jsLogin.htmlServer.jsvarExpress = Require ("Express");//Reference Packagevarquery = require ("querystring");varApp = Express ();//InitializeApp.listen ("8080",function() {//MonitorConsole.log ("Service has started, port is 8080")});varData2= ""; App.post ('/login ', function(request,response) {Response.header ("Access-control-allow-origin", "*"); Request.on ("Data",function(datas) {//To receive data from the user, it i
Perhaps everyone is used to use the es5 of the writing like to directly use the "Script" tag into the JS file, but it is a pity, the wording. In Es6, or in the Vue environment.What's the real writing?First of all. We want to transform the external JS file that we want to enter, and change it to the following format. mainly red block internal code, we need to "thr
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.