从父母身份证中找到孩子

时间:2019-08-24 00:19:18

标签: javascript jquery html

var data = "https://docs.google.com/spreadsheets/d/1dKqmrpRXrEET3FsgGR4cAfcxjMT23zPq62Sm7xez47A/edit#gid=0"
var mainID = "welcomeBox" //input the main id of the block you want to change
var boxID = "xedois.welcome" // input box id what the site needs to lo
$(document).ready(function() {
  $('#WelcomeTitle').sheetrock({
    url: data,
    query: "select B where A='boxID'"
  });
  $('#WelcomeMessage').sheetrock({
    url: data,
    query: "select C where A='BoxID'"
  });
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-sheetrock/1.1.4/dist/sheetrock.min.js"></script>

<div class="card text-white bg-secondary mb-3">
  <div class="blue-card-header">
    <p id="WelcomeTitle" class="news-title"></p>
  </div>
  <div id="WelcomeMessage" class="card-body"></div>
</div>

这就是我现在可以使用的功能,但是我想这样做,以便我只给顶层div一个id作为welcomeBox,我只是寻找孩子并对其进行更改

示例

<div d="welcomeBox" class="card text-white bg-secondary mb-3">
    <div class="blue-card-header">
        <p class="news-title"></p>
    </div>
    <div class="card-body"></div>
</div>

0 个答案:

没有答案