ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
**SQL** ``` SELECT Slops.dbo.f_getUserModelCode(@UserID,29) as code ``` ***** **JS里套DIV** ``` <script type="text/html" template lay-url="{{ layui.setter.apiUrl.SlopsApi }}/Execute?path=government%2FBasicInfo.txt&bidID={{ layui.data(layui.setter.tableName).bidID}}" lay-done="setTimeout(function(){layui.data.done(d)},200);"> {{# var code = d.tables[3][0].CzSelf; }} <div> <div> {{# if(code.charAt(0) === '1'){ }} <button> </button> {{# } }} </div> </div> </script> ``` ***** ### 涉及知识点: charAt() 方法可返回**指定位置**的字符 括号内填写**下标值** Slops.dbo.f_getUserModelCode(@UserID,29) 括号第二个参数,**菜单ID**