我希望你以後類似this one:
var flipBook;
jQuery(document).ready(function() {
//easiest with default settings
flipBook = $("#flipbookContainer").flipBook('example-assets/books/alice.pdf');
});
或者,您可以根據需要通過選擇變量自定義設置
var flipBook;
jQuery(document).ready(function() {
//make sure this file is hosted in localhost or any other server
var pdf = 'example-assets/books/alice.pdf';
//these are extra settings
var options = {
webgl:false,
height: 400,
duration: 800,
autoEnableOutline:true //auto open the outline/bookmarks tab
};
/**
* outline is basically a array of json object as:
* {title:"title to appear",dest:"url as string or page as number",items:[]}
* items is the same process again array of json objects
*/
options.outline = [
{title: "Page 1", dest: 1},
{title: "Page 2", dest:2},
{title: "StackOverflow", dest: "https://stackoverflow.com/",items:[
{title:"My Profile",dest :"https://stackoverflow.com/users/6687403/deepak-ghimire"},
{title:"Page 3",dest:3}
]}
];
flipBook = $("#flipbookContainer").flipBook(pdf, options);
});
希望它有幫助。
是免費還是付費? – kritikaTalwar
不,它不是免費的..但看起來值得[評論](https://codecanyon.net/item/dflip-flipbook-jquery-plugin/reviews/15834127) –