摘要: Jsonp并不是一种数据格式,而json是一种数据格式,jsonp是用来解决跨域获取数据的一种解决方案,具体是通过动态创建script标签,然后通过标签的src属性获取js文件中的js脚本,该脚本的内容是一个函数调用,参数就是服务器返回的数据,为了处理这些返回的数据,需要事先在页面定义好回调函数,本 阅读全文
posted @ 2021-09-14 15:12 代码界的吴彦祖 阅读(84) 评论(0) 推荐(0)
摘要: 一、一些常见的SQL实践 (1)负向条件查询不能使用索引 select * from order where status!=0 and stauts!=1 not in/not exists都不是好习惯 可以优化为in查询: select * from order where status in( 阅读全文
posted @ 2021-09-14 15:09 代码界的吴彦祖 阅读(384) 评论(0) 推荐(0)