我可以更改美元符号($)PHP和jquery吗? 因为对我来说很难
class foo {
var #bar = 'I am bar.';
var #arr = array('I am A.', 'I am B.', 'I am C.');
var #r = 'I am r.';
}
#foo = new foo();
#bar = 'bar';
#baz = array('foo', 'bar', 'baz', 'quux');
echo #foo->#bar . "\n";
echo #foo->{#baz[1]} . "\n";
#start = 'b';
#end = 'ar';
echo #foo->{#start . #end} . "\n";
#arr = 'arr';
echo #foo->{#arr[1]} . "\n";
答案 0 :(得分:0)
我不专业,但我认为有人可以做到
define('dolly' , '$');
echo dolly.'var =name';
echo $var;
$(document).ready(function(){
function ad(dolly){
return '$("'+dolly+'")';
};
ad('p').click(function(){
ad(this).hide();
});
});