搜索到与相关的文章
数据库相关

SQL用户存在则更新不存在则删除

1、添加索引(一般是唯一索引,我的是联合唯一索引):altertableT_Cartadduniqueindex(goods_id,user_id);2、SQL/**保存购物车(如果不存在则插入,如果存在则更新)*/@OverridepublicvoidinsetCart(Cartcart)throwsException{Stringsql="INSERTINTOT_Cart(goods_id,order_num,user_id)VALUES(?,?,?)

系统 2019-08-12 01:52:32 2425

编程技术

一些CKEditor定制问题

调整CKEditor的basePath使用base标签,或者项目文件结构的原因,我们可能需要调整CKEditor的basePath。basePath:(function(){//ATTENTION:fixestothiscodemustbeportedto//varbasePathin"core/loader.js".//Findouttheeditordirectorypath,basedonits