# 在樣板字串中無法執行document.querySelector 一般來說,樣板字串的規格如下  這個指令console.log出來變數一樣正常 但是就是無法執行 以下是解決方法 `document.querySelector('.id'+product_id+'').click();`  ###### tags: `JS` `樣板字串`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up