没有合适的资源?快使用搜索试试~ 我知道了~
首页Pro Vue.js 2
Pro Vue.js 2
需积分: 26 124 浏览量
更新于2023-05-26
评论
收藏 19.04MB PDF 举报
Explore Vue.js to take advantage of the capabilities of modern browsers and devices using the fastest-growing framework for building dynamic JavaScript applications. You will work with the power of the Model-View-Controller (MVC) pattern on the client, creating a strong foundation for complex and rich web apps. Best-selling author Adam Freeman explains how to get the most from Vue.js 2. He begins by describing the MVC pattern and the benefits it can offer. He then shows you how to use Vue.js in your projects, starting from the nuts and bolts and building up to the most advanced and sophisticated features, going in-depth to give you the knowledge you need. Chapters include common problems and how to avoid them.
资源详情
资源评论
资源推荐

Pro
Vue.js 2
—
Adam Freeman

Pro Vue.js 2
Adam Freeman

Pro Vue.js 2
Adam Freeman
London, UK
ISBN-13 (pbk): 978-1-4842-3804-2 ISBN-13 (electronic): 978-1-4842-3805-9
https://doi.org/10.1007/978-1-4842-3805-9
Library of Congress Control Number: 2018956735
Copyright © 2018 by Adam Freeman
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the
material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation,
broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage
and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or
hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with
every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an
editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are
not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to
proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication,
neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or
omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material
contained herein.
Managing Director, Apress Media LLC: Welmoed Spahr
Acquisitions Editor: Joan Murray
Development Editor: Laura Berendson
Coordinating Editor: Mark Powers
Cover designed by eStudioCalamar
Cover image designed by Freepik (www.freepik.com)
Distributed to the book trade worldwide by Springer Science+Business Media New York,
233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail
orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a California LLC
and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc).
SSBM Finance Inc is a Delaware corporation.
For information on translations, please e-mail editorial@apress.com; for reprint, paperback, or audio rights,
please email bookpermissions@springernature.com.
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and
licenses are also available for most titles. For more information, reference our Print and eBook Bulk Sales web
page at www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is available to readers
on GitHub via the book’s product page, located at www.apress.com/9781484238042. For more detailed
information, please visit www.apress.com/source-code.
Printed on acid-free paper

Dedicated to my lovely wife, Jacqui Griyth.
(And also to Peanut.)

v
Table of Contents
About the Author ����������������������������������������������������������������������������������������������������xxi
About the Technical Reviewer
������������������������������������������������������������������������������xxiii
■Part I: Getting Started with Vue�js ������������������������������������������������������ 1
■Chapter 1: Your First Vue�js Application ���������������������������������������������������������������� 3
Preparing the Development Environment ������������������������������������������������������������������������� 3
Installing Node�js ������������������������������������������������������������������������������������������������������������������������������������ 3
Installing the @vue/cli Package �������������������������������������������������������������������������������������������������������������4
Installing Git �������������������������������������������������������������������������������������������������������������������������������������������� 5
Installing an Editor ���������������������������������������������������������������������������������������������������������������������������������� 5
Installing a Browser ��������������������������������������������������������������������������������������������������������������������������������6
Creating the Project ���������������������������������������������������������������������������������������������������������� 6
Understanding the Project Structure ������������������������������������������������������������������������������������������������������ 6
Starting the Development Tools �������������������������������������������������������������������������������������������������������������� 8
Replacing the Placeholder Content ���������������������������������������������������������������������������������� 9
Adding a CSS Framework ���������������������������������������������������������������������������������������������������������������������11
Styling the HTML Elements ������������������������������������������������������������������������������������������������������������������� 12
Adding Dynamic Content ������������������������������������������������������������������������������������������������ 13
Displaying the List of Tasks ������������������������������������������������������������������������������������������������������������������ 14
Adding a Checkbox ������������������������������������������������������������������������������������������������������������������������������� 16
Filtering Completed Tasks �������������������������������������������������������������������������������������������������������������������� 19
Creating New Tasks ������������������������������������������������������������������������������������������������������������������������������ 21
Storing Data Persistently ���������������������������������������������������������������������������������������������������������������������� 23
Adding the Finishing Touches ��������������������������������������������������������������������������������������������������������������� 25
Summary ������������������������������������������������������������������������������������������������������������������������ 28
剩余727页未读,继续阅读












安全验证
文档复制为VIP权益,开通VIP直接复制

评论0