data () {
return{
img:require("../../../static/imgs/advance/icon_1.png"),
===============
repuire es6 webpack ?
==============
data () {
return{
img:require("../../../static/imgs/advance/icon_1.png"),
===============
repuire es6 webpack ?
==============
two, according to the established custom, those that are not processed by webpack
are put in static
, and those that need to be processed are put in assets
:
/ static/xx/xxx.png
. Note that only the code running in the js logic needs to use to actively introduce . After all, there is no webpack environment when the code starts to run on the client side, and the
that you write directly in template
will go directly to webpack.
other ways of introduction can be found in js Modularization Development
Previous: . Problems encountered in updating local Hexo files to Github's library
Next: How does js calculate the difference between two dates by months and days?
<template> <div style="height: 100%;"> <mt-header title=""> <mt-button icon="back" slot="left" v-tap="{methods: switchView, view: Post }">< mt-button> &l...
I use vue-cli to build the mobile project, and then use iframe to embed Youku s video code as follows <iframe width=100% height=350 src="http: player.youku.com embed XMzI1NTY2Nzc0MA==" frameborder=0 allowfullscreen>< iframe> th...
as shown in the picture, I want to click the button to add a new line in which the Input box that was just released is editable and looks at the document as if there is no solution. Do you have any solutions? ...
the code is as follows: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equ...
as shown in figure 1, in the first drop-down selection, the second select is dynamically assigned, select I m a little confused. During the novice trial, I don t know how to clear the second when the first select changes. ...
A single page built in the vue project. The bottom of the page is used to prompt the user to turn the page, similar to the small icon scrolling with the mouse, and there is a small circular animation. The code is as follows (the outer icon of saving tim...
< html > <head> <meta charset="UTF-8" > <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" > <title>< title> <link rel="stylesheet&...
I use the favorites list looped out by v-for. If I want to click on the hearts area of a favorites list, the favorites list will be hidden and removed. But every time I click on one of them, the looped list is all hidden. The code is as follows: html s...
The h5 page written by vue has a problem with ok, on some andriod under ios. Each request data page will not be rendered (if there is a loading will always be loading), need to re-touch the screen (anywhere) page to re-render. there are mainly the fo...
have you seen the offline cache of h5 on PC, so is the offline cache of h5 also implemented on mobile phones? ...
how do I render the images, returned by the API to the photo wall of element-ui? Baidu on its own for a long time, did not find similar problems ~ help you giant! ...
how to control the display time of the vue-z-toast plug-in? (parameter list not found) ask ...
1. When using vue, there are many pictures in the local images tempbanner directory. When entering, a pageName, will be added to pageName as banner1; 2, and the image can be opened using ...
the page has been rendered after calling the method in actions to get the data asynchronously. And reported an error. ...
set the class (buybtn-1,buybtn-2,buybtn-3,buybtn-4) of the object button according to the style selected by the radio box <button type="button" class="hide" title="" >< button> <div class="form-row&qu...
as shown in the following figure, you need to achieve this effect: : ?,:HTML: js: I would like to ask if the gods have any more efficient methods? ...
1. Use vue combined with canvas to smear some of the contents of the picture and generate a new image which god can recommend the relevant plug-ins, or have a good solution ...
how do I ensure that only the amount can be entered in the input for mobile vue projects? Including numbers and decimal points. It is found that if you adjust type= tel , there are only numbers but no decimal point, and type= number has other symbo...
in the vue project, I wrote a pop-up window component because the pop-up window style could not be changed. By clicking marker to show and hide it, I wanted to directly use v-show to show and hide, but to no avail. I think it s because there is somethi...
These simple features are available in JQ: : parent() parents() parentsUntil(selector) children() find() siblings() next() nextAll() nextUntil() ...