fastadmin数据库中新增一个字段
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">数据库<span style="color: black;">新增字段</span>后,想让这个字段<span style="color: black;">表示</span>在 <span style="color: black;">列表中</span>,<span style="color: black;">搜索栏目中</span>,<span style="color: black;">添加页面</span>,<span style="color: black;">编辑页面</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">假如这个字段是status,0:待审核,1:已<span style="color: black;">经过</span>,2:未<span style="color: black;">经过</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1.出<span style="color: black;">此刻</span>列表中</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/5798123bd8c740e6ac1094d34000e66f~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728743381&x-signature=hgblQzokA4Zr0r8pZ0kqW8V2of8%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">修改js文件<span style="color: black;">就可</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">里面的searchList<span style="color: black;">暗示</span>的下拉列表框的数据<span style="color: black;">源自</span>,<span style="color: black;">倘若</span>需要从数据库中<span style="color: black;">查找</span><span style="color: black;">得到</span>,则需要<span style="color: black;">经过</span>$.getJSON("<span style="color: black;">掌控</span>器/<span style="color: black;">办法</span>名")来获取</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/4692d5e6e5e5415893d3392560836ac2~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728743381&x-signature=gJpg94%2F3NNk2ol%2FuHoXuAOHQEXM%3D" style="width: 50%; margin-bottom: 20px;"></div>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/730f2ae337dd4fe2a13666baa09c505c~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728743381&x-signature=ZIjc%2FPls8e7Kdc6E95mi5gR3a%2F4%3D" style="width: 50%; margin-bottom: 20px;"></div>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/b935e1a9cc8741128cf948411b9fddff~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728743381&x-signature=Qb5bhqCTZiwIhVG3hjltvrlIPd4%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在</p>application/admin/common.php文件内有<span style="color: black;">非常多</span>同类型的其他<span style="color: black;">办法</span>可供<span style="color: black;">选取</span>而
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在add.html页面</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">第1</span>个参数是 要<span style="color: black;">表示</span>的字段</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">第二个参数是 <span style="color: black;">表示</span>的数据列表</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">第三个参数是 默认选中的值,<span style="color: black;">能够</span>是单个值(单选),<span style="color: black;">亦</span><span style="color: black;">能够</span>是数组(多选)</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/73a78253711642fdbdc7d62eead2142a~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728743381&x-signature=AZM8GIpVMDx%2F8dBxsW%2FZdxu5m4I%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在edit.html页面</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/56b1be6b1f944fcab9dc221e641f549c~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728743381&x-signature=2p3XgSyTNw8DeOxOyFkdl2uaey4%3D" style="width: 50%; margin-bottom: 20px;"></div>
页:
[1]