前端中接收微擎后端的普通字符串的时候在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删除。