<span id='twilio_token' style='display: none;'><?php echo $token->toJWT()?></span>
当我执行此操作而不是显示y时它什么也没有显示,如果我var accessToken = document.getElementById('twilio_token').innerHTML;
console.log(accessToken);
// create an Endpoint and connect to Twilio
endpoint = new Twilio.Endpoint(accessToken);
endpoint.listen().then(
endpointConnected,
function (error) {
log('Could not connect to Twilio: ' + error.message);
}
);
并执行它它显示.globl main
.globl store
.data
eq1: .asciiz "y=2*x+4"
.text
main: lui $t0,0x1000
ori $t0,$t0,0x0000
lui $t1,0x1000
ori $t1,$t1,0x0002
lui $t2,0x1000
ori $t2,$t2,0x0004
lui $t3,0x1000
ori $t3,$t3,0x0006
lui $t4,0x1000
ori $t4,$t4,0x0008
store: addi $v0,$0,11
lui $a0,0x1000
syscall
add $0,$0,$0
////////////////// ////////////////////////////////////
答案 0 :(得分:1)
打印字符系统调用期望实际字符不是其地址。因此,您需要在lb $a0, ($a0)
之前执行syscall
。