是否可以将Google文档复制到Google AppScript?

时间:2018-10-20 09:11:27

标签: google-apps-script google-docs

以下行创建一个新的Google文档:

DocumentApp.create('Hello, world!');

是否可以使用Google AppScript创建现有Google文档的副本?

1 个答案:

答案 0 :(得分:0)

您可以使用DriveApp

import React from 'react'
import styled from 'styled-components'
import Post from './Post'

const PostListContainer = styled.div`
display:grid;
grid-gap:25px;
max-width:1000px;
margin: 0 auto;
padding-top:100px;
padding-bottom:20px;`


const PostList  = ({posts}) => {
    return(
        <div>
            <PostListContainer>
                <h3>Post List:</h3> 
                {posts && posts.map(one => {
                    return(
                    <Post post={one} key={one.id}/>
                    )
                })}
            </PostListContainer>
        </div>
    )
}

export default PostList