Javascript 如何在Meteor JS的其他页面上显示特定值

Javascript 如何在Meteor JS的其他页面上显示特定值,javascript,html,css,Javascript,Html,Css,我只想通过点击DescriptionForm.js表单上的按钮在另一个页面(Dashboard.js)上显示“标题”。以下是html代码- <li class="abc"> <h3 style="margin-left: 100px;color:orange;"> Title:" {{resultvar.title}}" <button type="submit" name="submit" id="btn1" class=

我只想通过点击DescriptionForm.js表单上的按钮在另一个页面(Dashboard.js)上显示“标题”。以下是html代码-

<li class="abc">
   <h3 style="margin-left: 100px;color:orange;">
     Title:"   {{resultvar.title}}"
          <button type="submit"  name="submit" id="btn1" class="btn1 btn-warning pull-right">
        &nbsp;&nbsp;&nbsp;&nbsp;WIP&nbsp;&nbsp;&nbsp;&nbsp;
      </button>
     </h3>             
   </li>
以下为事件-

Template.DescriptionForm.events({
    'click .btn-warning': function (e) {
     e.preventDefault();
     var title = e.target.title.value;
     console.log('title:' + title);

     console.log("You pressed the WIP button");
      FlowRouter.go('/dashboard'); 

},}); 
在控制台上这是我的错误-

标题:未定义
您按下了WIP按钮
hii
x的值=未定义

Template.DescriptionForm.events({
    'click .btn-warning': function (e) {
     e.preventDefault();
     var title = e.target.title.value;
     console.log('title:' + title);

     console.log("You pressed the WIP button");
      FlowRouter.go('/dashboard'); 

},});