使用Safari的Javascript不起作用 - 所有其他浏览器都可以

时间:2016-05-05 12:01:44

标签: javascript jquery html

我有这个脚本,当"与Billing相同时,它复制表单字段"复选框从一个表单单击到另一个表单。它工作正常,除了在Safari中它不会从原始表单传输状态选择。状态的表单字段是选择框。任何帮助表示赞赏。

{"classes": [
{
    "id":"foo",
    "uiName":"bar",
    "textString1":"foo - bar",
    "bonus":"Excellent vs. foo",
    "effect1":"bar:200",
    "effect2":"foo:150",
    "effect3":"bar:150"
}]}

1 个答案:

答案 0 :(得分:1)

您可以使用

service = build('doubleclickbidmanager', config.Version, http=credentials.authorize(httplib2.Http()))
request = service.lineitems().downloadlineitems(body=body)

print "Downloading Line Items.."
logging.info("function: Downloading Line Items..")

# Execute request and save response contents.
with open(file_path, 'wb') as handler:
    # Call the API, getting the (optionally filtered) list of line items.
    # Then write the contents of the response to a CSV file.
    lidata = request.execute()['lineItems'].encode('utf-8')
    logging.info("function:request.execute succeeded.")
    handler.write(lidata)
    print 'Download Completed.'

而不是

.prop('selected', true)

一般来说,它可能更适合野生动物园。

尝试一下。