-
-
Save zhangkn/ffe64caa9f01482578a9d17e35b34ec2 to your computer and use it in GitHub Desktop.
template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Page({//进行页面的注册 | |
data: { | |
logs: [], | |
staffA: { firstName: 'Hulk', lastName: 'Hu' }, | |
staffB: { firstName: 'Shang', lastName: 'You' }, | |
staffC: { firstName: 'Gideon', lastName: 'Lin' } | |
}}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template is="staffName" data="{{...staffA}}"></template> | |
<template is="staffName" data="{{...staffB}}"></template> | |
<template is="staffName" data="{{...staffC}}"></template> | |
<!--wxml--> | |
<template name="staffName"> | |
<view> | |
FirstName: {{firstName}}, LastName: {{lastName}} | |
</view> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment