我有这样一个Json页面:
[{
"qid": "1",
"contester": "0",
"answer": "0",
"question": "What are you most likely to do after getting into an argument?",
"images": [{
"qid": "1
我想做一个产品页面的数据表视图。
下面是我现在使用的内容:
SELECT DISTINCT pProductDesign, pProductImage
FROM Product
WHERE (pProductDesign IS NOT NULL)
ORDER BY pProductImage
研究结果如下:
pProductDesign\pProductImage
128101 \x{e76f}/图片/128101-Cream.jpg
128101 \x{e 010}/图片/128101-Gold.jpg
128101 \x{e76f}/图片/128101-Khaki.jpg
8680
我想为上传的图像生成带有文件名的随机id。
我的代码是
var getUniqueMacroName = function(filename){
var Name = $.trim(filename.replace(/.[^.]+$/,'').replace(/ /g, "").replace(/[^\w]|_/g, "").toUpperCase());
var Ext = $.trim(filename.replace(/^.*\./,'').toUpperCase());
var mac= _.map