【问题标题】:node.js yield page view to other page view stacknode.js 将页面视图生成给其他页面视图堆栈
【发布时间】:2016-01-14 00:40:57
【问题描述】:

我想在 node.js 页面中生成其他页面,例如 php yeild

  <!--  center   -->

  <div class="row" style="min-height:500;margin:5px 10px 0px 10px;" >

  // i whant  @yield('main')  here like php 
  </div>



  <!--  footer -->
  <footer  class="row"  name="footer" >

  </footer>

【问题讨论】:

    标签: javascript jquery html node.js


    【解决方案1】:

    为此,您可以使用 jQuery .load() 方法。下面是例子:

    //HTML Code
    <div class="row" style="min-height:500;margin:5px 10px 0px 10px;"></div>
    
    //jQuery Code
    $(".row").load("main.html"); //Path of you html file
    

    【讨论】:

      猜你喜欢
      • 2014-08-25
      • 1970-01-01
      • 1970-01-01
      • 2013-12-03
      • 2020-12-30
      • 2011-06-05
      • 2015-01-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多