前端中接收微擎后端的普通字符串的時候在script標簽中用引號擴起來在引用
例如:
<script>
test_json = "{$test_string}"
</script>
接收 json 格式的數據時就不加上引號
<script> test_json = {$test_string} </script>
前端中接收微擎后端的普通字符串的時候在script標簽中用引號擴起來在引用
例如:
<script>
test_json = "{$test_string}"
</script>
接收 json 格式的數據時就不加上引號
<script> test_json = {$test_string} </script>
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。