我正在尝试使用选择器创建一个响应表,我遇到了一些美学问题。它看起来像这样
我希望它像这样:
让绿色加号显示在 #include <iostream>
#include <memory>
class Database
{
};
void getDatabase(Database*& pDb)
{
pDb = createNewDatabase();
}
int main()
{
std::shared_ptr<Database> pDb=NULL;
getDatabase(pDb.get()); // Here is the issue pDb.get() doesn't do what I need
return 0;
}
我觉得它很容易解决,但我似乎无法找到它
这是html:
Wilson
使用Javascript:
<table id="LastWeek" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
<thead>
<tr>
<th><img src="http://simpleicon.com/wp-content/uploads/Shopping-Cart-9.png" alt="shopping cart" style="width:20px;height:15px"></th>
<th>Last Name</th>
<th>First Name</th>
</tr>
</thead>
<tbody>
{% for p in qbPastWeek %}
<tr>
<td></td>
<td><a href="{{p.player.profile_url}}">{{p.player.last_name}}</td>
<td>{{p.player.first_name}}</td>
</tr>
{% endfor %}
</tbody>
</table>