0
将html标记作为API响应的一部分是否是一种很好的做法?它具有内容类型为application/json
将HTML标记作为JSON响应的一部分,是否是最佳做法?
样品JSON响应
{ html : '<div id="markup">This is the server response html.</div>', data : {property : 'This is the data received from the server.'} }