dkit-snippet, dikt 代码片段
//输入ajax
$.ajax({
url: "",
method: "POST",
datatype: "json",
success: (data) => {},
error: (err) => {},
});
//输入react
import React, { useState } from "react";
function App() {
const [data, setData] = useState("hello");
return <div>hello</div>;
}
export default App;
| |