The vue project introduces a third-party js plug-in, and a single js file is successfully introduced, but the method of using the plug-in is wrong.

1. Npm cannot be installed by introducing third-party js files.

clipboard.png

2

clipboard.png

3methods

clipboard.png

4

clipboard.png

how can I use the method in the introduced single js?

I really can"t handle it. My black is going to turn into yellow bifurcations. Thank you first

.
Mar.03,2021


http://es6.ruanyifeng.com/-sharpdo.

Export in calendar.js:

export default{
    calendar
}

Import when using:

import {calendar} from '@/views/home/calendar'

then you can use it directly in methods:

var lunar = calendar.solar2lunar()

this issue has been resolved at 14:00 on 2018-4-13

1. Check the original calendar.js file, there is no exposed method

clipboard.png

:

clipboard.png

2 es6

clipboard.png

3

clipboard.png

clipboard.png

Thank you very much for the chess99 who answered first

.

Thank you for your thoughts.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37848-2c0a8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37848-2c0a8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?