Home page
Question and answer
column
The lecture hall
More and more

  • position
  • activity
  • The label
  • The badge

SegmentFault

  • Home page
  • Question and answer
  • column
  • course
  • activity
  • found
    • circle
    • The label
    • Cool job
    • list
    • The badge
    • notes
    • Development manual
    • advertising

  • Login immediatelyFree registration

Hot labels
all
javascript
php
python
java
mysql
ios
android
node.js
html5
linux
c++
css3
git
golang
ruby
vim
docker
mongodb
Login free advertising

  1. Question and answer
  2. Q&a details






How to integrate phantomJS with vue project?

  • phantomjs
  • vue.js
  • vue-cli

Because the project needs screenshots, but. Phantomjs is a command-line tool, so I was wondering how Vue combined with Phantomjs to take screenshots. For example, the screenshot code is written in A. vue. How do I take screenshots

  • Focus on | 3
  • Collect the | 1
  • comments
  • Invited to answer
  • The editor
  • Translate
    • To report
    • Version history


A little boy is not talented



**bold**
_italic_
[link](http://example.com)
> reference
`code`
List -



The default sort
Time sequence





Phantomjs should run on the server, giving an address x to trigger your server’s corresponding function(all the logic to execute is written here). And make sure you have another routing address y access to get the interface you want for screenshots (and perhaps server rendering). Therefore, you should request address X in A. ue to execute the server program.

With all due respect. If you just want a simple front-end screenshot, try html2Canvas

  • Comment 3,
  • appreciates
  • Translate
  • The editor


The snake

The 2018-08-28 answer


**bold**
_italic_
[link](http://example.com)
> reference
`code`
List -


The screenshot function should be a service that has little to do with vue’s static projects

  • comments
  • appreciates
  • Translate
  • The editor


dailyvuejs

The 2018-08-28 answer


**bold**
_italic_
[link](http://example.com)
> reference
`code`
List -


Write the answer




[舍弃]

preview

The lecture hall to recommend More and more


Advertising space promotion, monthly exposure 30 million, 10 yuan/day

To promote links

IView actual combat course series

[limited time offer] well-known open source component library author

Daishen’s way to advance PHP

Structure sorting of hundred-million-class PV project, performance improvement practice

Java microservices hands-on class

Thousands of people have learned the micro practical stack class

Vue technology stack development practice

IView core developers take you to master the essence of Vue


Similar problems

  • Is there a limit to the size of a value in a MongoDB document?
  • Webrtc can communicate only on a LAN
  • The difference between Spring Transactional ReadOnly and not Transactional
  • How does Python forbid escape parsing of a string variable?
  • PC page CSS using font-family will cause font infringement
  • Can’t find a problem? You can create new problems
  • Sina weibo
  • WeChat
  • Twitter
  • Facebook

• • •

share

Share it on Twitter?

share

Close the problem (exercise caution)

Delete the problem (exercise caution)

Delete answer (Exercise caution)

Ignore the answer

Closed reason: Deleted Reason: Ignored Reason:









Supplementary notes:

I should, for the following reasons:

    In the SegmentFault, learn skills and solve problems

    Every month, we help 10 million developers solve all kinds of technical problems. And help them improve their technical skills, careers and influence.

    Free registration
    Login immediately

    product
    Popular answers
    Popular column
    Most popular courses,
    The latest activity
    Technology circle
    Cool job
    Mobile client
    course
    Java Development Courses
    PHP Development Course
    Python Development Courses
    Front-end development course
    Mobile Development Courses
    resources
    Weekly well-chosen
    User leaderboard
    The badge
    Help center
    Reputation and Authority
    Community Service Center
    cooperation
    About us
    advertising
    job
    The lecturer to recruit
    Contact us
    partners
    Focus on
    Product Technical log
    Community Operation Log
    Market operation log
    The team log
    Community interview
    • WeChat
    • Sina weibo
    • Github
    • Twitter
    The terms of
    The terms of service
    Privacy policy

    Scan to download the App



    Zhejiang ICP 15005796-2
    Zhejiang Public security 33010602002000

    CDN storage service is sponsored by Youpaiyun

    Mobile version Desktop version

    Back to the top