📜  通过模板标签js注入html - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:53.960000             🧑  作者: Mango

代码示例1
const person = {
            name: 'Anthony Smith',
            job: 'JavaScript Developer',
            city: 'Los Angeles',
            bio: 'Anthony is a really cool guy that loves to teach web development!'
        }

        // And then create our markup:
        const markup = `
 

${person.name}

${person.city}

${person.bio}

`;