如题。
<text class="txt" onclick="routeDetail" id="1" >进入</text>
routeDetail (e) {
console.log(e);
;router.push (
{uri: '/DemoDetail'}
)}
打印出的id值为undefined
<text class="txt" onclick="routeDetail" id="1" >进入</text>
routeDetail (e) {
console.log(e);
;router.push (
{uri: '/DemoDetail'}
)}
打印出的id值为undefined