Home > front end >  How in the vue file using custom jq plugin
How in the vue file using custom jq plugin

Time:12-03

Previous projects are useless to the vue, the most recent upgrade project to do, want to function are migrated to the vue project, but had a based on jq and zrender writing a custom plugin, introduce how to vue file, to use the module export? Haven't contact with the introduction of custom plug-in, a bit mask, bosses, please grant instruction how to rewrite,

CodePudding user response:

First installed jquery and zrender plug-in
NPM install jquery and NPM install zrender
Then the code translation,

Interface request is recommended to use NPM install axios

Jq. If you need can be in the main js global configuration
In the build/webpack. Base. Conf., js,
Import: var webpack=the require (' webpack ');

At the bottom to add:
Plugins: [
New webpack. ProvidePlugin ({
$: "jquery",
JQuery: "jQuery",
"Window. The jQuery" : "jQuery"
})
]

CodePudding user response:

refer to the second floor lp19890601 response:
first installed jquery and zrender plug-in
NPM install jquery and NPM install zrender
Then the code translation,

Interface request is recommended to use NPM install axios

Jq. If you need can be in the main js global configuration
In the build/webpack. Base. Conf., js,
Import: var webpack=the require (' webpack ');

At the bottom to add:
Plugins: [
New webpack. ProvidePlugin ({
$: "jquery",
JQuery: "jQuery",
"Window. The jQuery" : "jQuery"
})
]

That's right, the top

CodePudding user response:

Yes, under reference

CodePudding user response:

reference 4 floor TEL15986782309 response:
yes, under reference

CodePudding user response:

refer to the second floor lp19890601 response:
first installed jquery and zrender plug-in
NPM install jquery and NPM install zrender
Then the code translation,

Interface request is recommended to use NPM install axios

Jq. If you need can be in the main js global configuration
In the build/webpack. Base. Conf., js,
Import: var webpack=the require (' webpack ');

At the bottom to add:
Plugins: [
New webpack. ProvidePlugin ({
$: "jquery",
JQuery: "jQuery",
"Window. The jQuery" : "jQuery"
})
]


Thank you thank you!
  • Related