我已经在星期四 (17-10-2019) 下午 2 点发布了应用程序。它还没有发布。会出现什么问题。我希望它按照我们计划发布的速度快速完成。
如果发布有任何问题,将如何与我沟通?
我正在尝试使用 URL 作为表中另一个字段的超链接。
ticketurl和ticketid是我的 JSON 响应中的两个不同的名称值对。我正在尝试显示ticketid,这是指向 的超链接ticketurl:
数据是json数组
[
{
"index": 2,
"empId": "ammy",
"requestorId": null,
"profile": "a",
"request": "b",
"ticketId": "abc-12345",
"createdTime": "2019-07-07 18:01:15.0",
"updatedTime": "2019-07-07 18:56:26.0",
"statusurl": "www.xyz.com",
"ticketurl": "www.abc.com",
"status": "Open",
"description": "The issue is open"
}
]
Run Code Online (Sandbox Code Playgroud)
<ReactTable
data={data}
columns={[
{
columns: [
{
Header: "Employee Id",
accessor: "empId"
},
{
Header: "Requestor Id",
accessor: "requestorId"
},
{
Header: "Profile",
accessor: "profile"
},
{
Header: "Request",
accessor: "request"
}, …Run Code Online (Sandbox Code Playgroud) 我在获取响应中获取简单的 json 对象。当我尝试访问该对象时,它被捕获。
this my reposnse
{
"islogin": true
}
fetch(url, data)
.then(res => {console.log(res);return res.json()})
.then(
(result) => {
console.log("rsult",JSON.stringify(result));
console.log(result.islogin);
console.log("1");
console.log("authentication success");
})
.catch((error) => { window.alert("error", error);
console.log("authentication failed");
});
Run Code Online (Sandbox Code Playgroud)
我期望 result.islogin 为 true/false。但它不会进入 then(result) 回调。