0
由於某種原因它不是processing-- VAR用戶=變量,當我觀看results-- mysite.com/image_upload/uploads/';/Java腳本不處理PHP變量
(function($){
$.simpleuploader = {version: '0.1'};
$.fn.simpleuploader = function(options){
// the container to inject the form into
var $this = $(this);
var user = '<?php echo json_encode($uid); ?>';
// set defults
var defaults = {
prefix: 'simpleuploader-',
latency: 500,
reuse: true,
when: 'onchange',
submitText: 'Submit',
disabledOpacity: .3,
settings: {
fullPath: 'http://www.mysite.com/image_upload/uploads/' + user + '/',
relPath: '../uploads/' + user + '/',
maxSize: '4194304',
maxW: 300,
maxH: 300,
colorR: 255,
colorG: 255,
colorB: 255
},
究竟是什麼以JavaScript的形式發送到瀏覽器? – David 2012-03-06 21:56:01
嘗試將雙引號引入php回顯。 – kirilloid 2012-03-06 21:56:41
請寄出'<?php var_dump($ uid); ?> – bfavaretto 2012-03-06 21:56:47